- Posts: 38
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
How can i set default value for Dropdown ?
- mikezhangsky
- Topic Author
- Offline
- Junior Member
Less
More
7 years 11 months ago #135417
by mikezhangsky
How can i set default value for Dropdown ? was created by mikezhangsky
I have a question with array text using label .
I set dropdown for the question.
How can i set the default values for dropdown , I did not find any where to set it ,and the default value i "Please choose..."
I set dropdown for the question.
How can i set the default values for dropdown , I did not find any where to set it ,and the default value i "Please choose..."
Attachments:
The topic has been locked.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
7 years 11 months ago #135421
by Ben_V
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Replied by Ben_V on topic How can i set default value for Dropdown ?
for multiples dropdown in an array as shown in your pic, i suppose the only way is to use javascript to add a "selected" attribute to the items depending on their IDs or other selectors
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
- mikezhangsky
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
7 years 11 months ago #135438
by mikezhangsky
Replied by mikezhangsky on topic How can i set default value for Dropdown ?
thank you very much ,
Would you give me an javascript example for me ?
Would you give me an javascript example for me ?
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
7 years 11 months ago #135443
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 How can i set default value for Dropdown ?
LimeSurvey version? Question type?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- mikezhangsky
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
7 years 11 months ago #135505
by mikezhangsky
Replied by mikezhangsky on topic How can i set default value for Dropdown ?
The version of LimeSurvey is 2.05 ,questtion type is array text , and i use the arrayTextAdapt for Limesurvey.
and thank you very much ~
and thank you very much ~
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
7 years 11 months ago #135522
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic How can i set default value for Dropdown ?
Please post a link to a short, activated sample survey.
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
- mikezhangsky
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
7 years 11 months ago #135559
by mikezhangsky
Replied by mikezhangsky on topic How can i set default value for Dropdown ?
I set a question use array text ,and use the plugin arrayTextAdapt .
Attachments:
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
7 years 11 months ago #135759
by DenisChenu
A possible solution can be :
At start of survey : Use Equation to set a value example {QCODE_Y1_X1=if(is_empty(QCODE_Y1_X1.NAOK),"A1",QCODE_Y1_X1.NAOK)}
See attached lss file
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic How can i set default value for Dropdown ?
With or without this plugin.mikezhangsky wrote: I set a question use array text ,and use the plugin arrayTextAdapt .
A possible solution can be :
At start of survey : Use Equation to set a value example {QCODE_Y1_X1=if(is_empty(QCODE_Y1_X1.NAOK),"A1",QCODE_Y1_X1.NAOK)}
See attached lss file
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Attachments:
The topic has been locked.
- mikezhangsky
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
7 years 11 months ago #135768
by mikezhangsky
Replied by mikezhangsky on topic How can i set default value for Dropdown ?
thank you for your help , it works~~
The topic has been locked.