I have a survey I’d like to pre-fill, which has repeat-groups. How do I pre-fill the questions in the repeat groups?
A specific example: I want to ask for (say) a list of website links. The questionnaire contains a repeating group with ID websites containing a single question with ID link.
I already discovered how to pre-fill this once, as it works the same as for normal questions. I can create a link like this, which prefills it with https://example.com:
But I need to pre-fill many of these links. This list of links can be long, of the order of tens of values, and I want to avoid the user having to type them all in if I can, and instead just amend the list I already have in a pre-filled form.
Repeat URL parameters with the same key is valid in a URL, so I though maybe just repeating it would work, but this guess seems not to work - only the last parameter is seen:
Welcome to the community, @wu-lee! I don’t know if this is possible, but would you mind sharing with the community your sample xlsform that has the question and the working link that can prefill the response as required.
An aside - possibly an alternative might be to preload using the pulldata function in an XLS calculate column However, although I found an example of this, I wasn’t able to get this to work. It did not seem to be able to find the csv file I uploaded, and the error message wasn’t very helpful.
I don’t have the exact details to hand, I wanted to check this seems feasible at all first?
The number of websites isn’t fixed, and no, it’s not a case of multiple select. Typically each response will have a unique list of one or more responses.
Im trying to do something a bit different but kind of similar. I’m trying to pull data from a data set that has a “/”. I.e.: Group/fruit_key
This slash happens because im linking this data set to an other dataset produced by an other form and the question is inside a group. The pull function works fine with no /.