Hide show couple of fields based on Yes/No field

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?

Dear @coresoul,

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

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?

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