Default Values for Multi Value Fields | XM Community
Skip to main content
Solved

Default Values for Multi Value Fields


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.

Best answer by TomG

Yes, you are correct. You can use JavaScript to select default choices based on embedded data.
View original

6 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5911 replies
  • Answer
  • July 23, 2018
Yes, you are correct. You can use JavaScript to select default choices based on embedded data.

Forum|alt.badge.img+1
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?

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5911 replies
  • January 23, 2020
> @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.

Forum|alt.badge.img+1
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!

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5911 replies
  • January 23, 2020
> @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}";
```

Forum|alt.badge.img+1
Great thank you.

Leave a Reply