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.
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
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.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
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.