Check out the LimeSurvey source code on GitHub!

Populate token attribute from question response

More
3 years 9 months ago #95570 by mgib134
I'm wondering if/how I can fill a token attribute field from a question's response, and show/hide future questions based off of that field. Specifically, what we need to do is add two token attribute fields, "Company" and "Department." First question as a drop down, "What company do you work for?" and store that in attribute1. Second question, "What department do you work in?" and show departments for whichever company they work for, and store that response in attribute2.

Please Log in to join the conversation.

More
3 years 9 months ago #95616 by tpartner
Well. not "out of the box", but in theory it should be possible to make an AJAX call to a remote PHP script that writes the appropriate value to the tokens table in the database.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form