I want to save the FileNames for the pictures I use in a loop&merge.
I have already created an embedded data point in the survey flow and a field inside the loop&merge with the FileName, i cannot acces it with the embedded data though.
How can I access it?
Or: Is there any other way on how to get the actual file names behind the urls that I inserted into the loop&merge? I crucially need them for the analysis part of the survey.
Thank you so much for your help in advance!
Page 1 / 1
@GBram Can you please show how you embed the pictures?
Hi! :)
Thank you so much for your answer already!
Sure, here is how my survey flow looks like:
And then, I have the URLs and filenames in the loop&merge inside my mainblock in the builder, to show you the structure of it:
It is my first time using Qualtrics and I am still figuring out how everything works. Basically, I have a loop with many pictures inside my main block, as well as 5 other questions. It is important now that I have the filename, not only the URL, for every image and the answers that belong to that specific image included in the survey responses file when I export it. I read some entries in the forum on how I can do that and therefore tried the embedded data solution, but it doesn’t work for me. I cannot set the value inside the embedded data to field 2 of my loop&merge and also, as it appears, I would have to set an embedded data for every single one of the many images I have. Is that correct?
Do you maybe have any idea why this is happening? Or a solution? Or maybe another way of exporting the filenames along with all of the other collected data?
Thank you so much for your help again in advance! :))
Ahh! I thought I found the solution but unfortunately it still doesnt work i looked at the excel sheet.
Also, I noticed that some pictures inside the loop just get repeatedly shown, I selected “randomised order” because I need it for the survey, so that might be the problem? Do I have to add like a stop statement or something somewhere? Because I obviously want every picture to be shown only once but in a randomised order. Again, I already checked the forum but cannot find a solution.
Thanks so so much again for the help! I’ve been trying to fix these issues for so long now and really hope I find the solution very soon. :)
Best regards!
@GBram,
Loop and merge fields are only available within the Loop & Merge block, so you can’t save them in the survey flow. The only way to set an embedded data field within the L&M block is with JavaScript. However, you would still have to define the embedded data field in the survey flow for it to be saved in your response data.
Therefore, the best approach would be to do the reverse of what you attempted: set embedded data fields in the survey flow for all the loop & merge fields, then pipe the embedded data fields into the loop & merge setup.
Thank you very much for your response!
Okay, I guess I will have to try it with JavaScript then.
But I have over 100 elements in my loop so that actually is a solution I do not really want to try. Also, i would have to pipe over 100 embedded data fields into the loop&merge then as well.
I was hoping that there is a more automated/easier version to this as I will also have to create some more studies with a lot of elements inside the loop.
@GBram,
If you set embedded data fields in the survey flow, then you don’t need JavaScript.
If you have a lot of loop & merge data and you’ll be doing this on a regular basis, you should consider populating the embedded data with a web service.