Welcome, Guest
Username: Password: Remember me

TOPIC: Dynamic drop down options based on the access token

Dynamic drop down options based on the access token 7 months 3 weeks ago #104225

  • bidsro
  • bidsro's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Hello,

It's possible to restrict options available in a dropdown based on the access token used to access the survey? For example, we have a list o sales agents and we would like to ask the same questions to a range of clients. But each client should see/select in the dropdown list only the sales agent who had contact with this client and signed a contract.

The only option i've found so far is to create a individual survey for each sales agent, but we have 53 agents..

Thank you
The administrator has disabled public write access.

Dynamic drop down options based on the access token 7 months 3 weeks ago #104232

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4192
  • Thank you received: 788
  • Karma: 359
The way to do this without JavaScript is create one survey with a question for each agent. conditions or relevance based on a token attribute can be applied to these questions.

.
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.

Dynamic drop down options based on the access token 7 months 3 weeks ago #104241

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2675
  • Thank you received: 323
  • Karma: 121
From what I understand, each client will only have ONE sales agent, is this correct?

So why even bother to make them click/pick/choose if there will be only one option anyway?

Include the sales agent as a custom attribute in the token table. Then you can pass the name of the sales agent into the survey, you can pipe it into the text of questions, but you don't need the client too choose, which I find far more elegant.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.115 seconds
Donation Image