- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Dynamic drop down options based on the access token
- bidsro
- Topic Author
- Offline
- New Member
Less
More
10 years 1 month ago #104225
by bidsro
Dynamic drop down options based on the access token was created by bidsro
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
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 topic has been locked.
- tpartner
- Online
- LimeSurvey Community Team
Less
More
- Posts: 10632
- Thank you received: 3696
10 years 1 month ago #104232
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Dynamic drop down options based on the access token
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.
The topic has been locked.
- holch
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11756
- Thank you received: 2753
10 years 1 month ago #104241
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Dynamic drop down options based on the access token
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.
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.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.