Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Add GET or POST param value to field

More
10 years 10 months ago #116758 by davideperi
Hi, is it possible to add a default string value to a field from a URL GET or POST param?

Example:
I create a textfield "test"
I launch the survey passing a GET param like /?test=value

Thanks for your support.

Best regards
Davide
The topic has been locked.
More
10 years 10 months ago #116770 by davideperi
Hi Everybody,

the only way I found to setup a value inside a field is to use custom attribute in the token table to setup the custom attribute.
Then I change the field default value to {TOKEN:ATTRIBUTE_1} for example, and finally to setup the field read only I manipulated the survey using Javascript as described here:
www.limesurvey.org/manual/Workarounds:_M...to_this_Wiki_page.3F

Hope this help.
Regards
The topic has been locked.
More
10 years 10 months ago #116782 by tpartner
You can prefill survey answers using the survey URL, exactly as you describe in the original post - www.limesurvey.org/manual/Workarounds:_S...ling_survey_elements

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose