Default Values for Multi Value Fields | XM Community
Skip to main content
We are currently applying default values to our text boxes via embedded data from the contact list we are using and its working great. We are looking to use the same feature on our single multi-value field, but it doesn't look like that functionality exists. It appears you are only able to select a default value for once for each survey and not have it dependent on the embedded data. Can someone please confirm or let us know if there is another way to do this. Thx.
Yes, you are correct. You can use JavaScript to select default choices based on embedded data.
Hi Tom, I am also interested in doing similar, but it has been a few years since I have used javascript. Do you have any pointers on how to achieve this?
> @Navitas_Nets said:

> Hi Tom, I am also interested in doing similar, but it has been a few years since I have used javascript. Do you have any pointers on how to achieve this?



You need to pipe the embedded data into the JS, parse it as needed, and programmatically check the appropriate choices.
Ok, this may be a bit more complex than I can handle right now as I've yet to play with JS in Qualtrics, so not familiar with how access the embedded data, but I think some googling might help me get there. Thanks!
> @Navitas_Nets said:

> Ok, this may be a bit more complex than I can handle right now as I've yet to play with JS in Qualtrics, so not familiar with how access the embedded data, but I think some googling might help me get there. Thanks!



Pipe it in:

```

var ed = "${e://Field/ed}";

```
Great thank you.

Leave a Reply