Hide show couple of fields based on Yes/No field


#1

I would like to show 2 fields if yes/no field is selected and also would like to make it mandatory if yes is selected. How do I do it?


#2

Dear @coresoul,

Please check out this documentation: https://plumsail.com/docs/forms-sp/how-to/conditional-fields.html


#3

if (fd.field(‘yesnofiled’).value)=1 {

}

Is this the code for Yes/No Check?
Also how do i make other 2 fields required if true?


#4

Dear @coresoul,

Yes, if (fd.field('YesNoField').value == 1) {} could be used as a Yes/No check.

Please check out this documentation, I hope you find it useful: https://plumsail.com/docs/forms-sp/how-to/conditional-fields.html