Hi, I would like to give an embedded data field the value of the information needed to call an audio file from my file library, so that when I call the embedded data field in a question, it is as if I inserted the media in the question (so that I can randomize the audio file that is called with just one audio question).
Thanks for any help.
Page 1 / 1
Say this is your code for displaying an audio file (just copy-pasting the auto-generated HTML):
Then, just change the field's unique ID - in this case "F_dpuzYUuYaBrGcmx" - with Piped text from embedded data. Let's say you have an embedded data variable called "media" with the value of "F_dpuzYUuYaBrGcmx". Your HTML would look like this:
Then you can scale that using JavaScript (e.g. setting a bunch of embedded data variables and then setting individuals questions' HTML using the same JS; or you can also set every question's HTML once via the Header - all depending on your specific goal).
Hope that helps.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.