Disable mandatory with javascript

More
2 years 11 months ago #122396 by Marksom
Marksom created the topic: Disable mandatory with javascript
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.

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #122433 by first
first replied the 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

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #122454 by Ben_V
Ben_V replied the 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

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)

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #122467 by Marksom
Marksom replied the 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.

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #122473 by first
first replied the 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

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #122486 by DenisChenu
DenisChenu replied the 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

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #122490 by tpartner
tpartner replied the 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=

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!