Welcome, Guest
Username: Password: Remember me

TOPIC: Populate token attribute from question response

Populate token attribute from question response 1 year 6 months ago #95570

  • mgib134
  • mgib134's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
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.
The administrator has disabled public write access.

Populate token attribute from question response 1 year 6 months ago #95616

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4371
  • Thank you received: 829
  • Karma: 381
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.095 seconds
Donation Image