Hi-
I'm trying to populate options for a drop down question with my company's client's names. I'm able to make a web service call to my company's API, which returns the client names and ids as an array of objects serialized as JSON. For instance:
[{name:"client1",id:1},{name:"client2",id:2},{name:"client3",id:3},...{name:"clientX",id:X}]
Qualtrics deserializes this into fields as something like 0.name, 0.id, 1.name,1.id
and prompts me to select the fields I would like to turn into Embedded Data (which, I believe, I can then use as options for my drop down)
That's great, but I want to choose ALL of the name/id pairs. And the number returned can change.
Is this possible??
Thanks
Solved
Embedding data from Web Service that returns arbitrary number of records
Best answer by TomG
You have to set up the web service call to accept the maximum number of fields.
If that's not possible, you can use something like select2 with ajax to get the data. Your question would change to a text entry question.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.