- Posts: 27
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Disable mandatory with javascript
- Marksom
- Topic Author
- Offline
- Junior Member
Less
More
8 years 8 months ago #122396
by Marksom
Disable mandatory with javascript was created by Marksom
Hello Friends.
I have a question based on a preview question and turn hide with javascript.
You can disable the option mandatory with javascript using jquery?
Thanks.
I have a question based on a preview question and turn hide with javascript.
You can disable the option mandatory with javascript using jquery?
Thanks.
The topic has been locked.
- first
- Offline
- Elite Member
Less
More
- Posts: 256
- Thank you received: 37
8 years 8 months ago #122433
by first
Survey Designer and Programmer
Replied by first on topic Disable mandatory with javascript
You can make question non-mandatory from question settings . This question property can not be changed using js. Please elaborate what exactly the problem you are facing. We can suggest some workaround.
Survey Designer and Programmer
The topic has been locked.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1223
- Thank you received: 351
8 years 8 months ago #122454
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 Disable mandatory with javascript
it reminds me a quiet old feature request (can't find the link): a new survey setting to switch all questions to 'not mandatory', useful when testing the survey....
related post
related post
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.
- Marksom
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 1
8 years 8 months ago #122467
by Marksom
Replied by Marksom on topic Disable mandatory with javascript
Hello everyone.
Thank you for your help. I think OMdev answered my question.
I took a Tpartner solution here: Filter by column
Some columns will be hidden, but still mandatory.
I wish the hidden columns was not mandatory.
Thanks.
Thank you for your help. I think OMdev answered my question.
I took a Tpartner solution here: Filter by column
Some columns will be hidden, but still mandatory.
I wish the hidden columns was not mandatory.
Thanks.
The topic has been locked.
- first
- Offline
- Elite Member
Less
More
- Posts: 256
- Thank you received: 37
8 years 8 months ago #122473
by first
Survey Designer and Programmer
Replied by first on topic Disable mandatory with javascript
In this case the only way is to make question non-mandatory from its setting and validation using javascript . This javascript validation will work on click of next button. I guess Tpartner js should work perfectly.
Survey Designer and Programmer
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
8 years 8 months ago #122486
by DenisChenu
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 Disable mandatory with javascript
Hi,
Using manual.limesurvey.org/Question_type_-_Ar...28em_validation_q.29 you can set some part to mandatory, and some other to not mandatory.
Denis
Using manual.limesurvey.org/Question_type_-_Ar...28em_validation_q.29 you can set some part to mandatory, and some other to not mandatory.
Denis
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.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
8 years 8 months ago #122490
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 Disable mandatory with javascript
An alternative would be to add a "Not Applicable" option and modify the workaround to hide those and click them if the column is hidden. I'm not in a position to give the code for that today but searching the forum and workarounds should yield similar solutions for normal array questions.
Something like this - www.limesurvey.org/en/forum/search?query...r&childforums=1&ids=
Something like this - www.limesurvey.org/en/forum/search?query...r&childforums=1&ids=
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.