I am passing in some URL variables and storing them as hidden values on page 1 of my survey. So I might have:
I want to be able to prepopulate the answers to a checkbox question so that option1 & option3 would be checked and option2 would be unchecked.
Is there an easy way to do this – I cannot seem to get it to check the box using a logic condition using the hidden variable.
Thank you in advance for any assistance.
Thank you for the response. It does not seem to be working for me at the moment – I am probably missing something obvious and just cannot see for looking right now
I will put together some more info about how my survey is set up and post it if I cannot get it to work.
Is there a particular value I need to assign in my hidden variable to set the checkbox as checked (is it true, checked, 1 etc?)
You will probably want to use the Default Answer option described here:
You could reference the Hidden Value (via merge code) in the default answer field. Keep in mind that the checkbox question would need to be on a page after the Hidden Value. Also, because you are wanting to select multiple options in the checkbox, these will need to be comma separated.
So in your Default Answer field in the checkbox question, this should probably look something like this:
[question(“value”), id=”1″],[question(“value”), id=”2″] (these are just example merge codes but should be separated by a comma and no spaces.
Hope this helps you get going!