Page 1 of 1

javaScript to hide/show a subform on a dynaform

Posted: Mon Jan 18, 2021 1:55 pm
by ewallace
I have a dynaform that displays two subforms: subform Credit and subform Non-Credit.

I need to hide/show the appropriate subform given the preexisting value of variable courseIs.

If courseIs == "credit" show subform Credit and hide subform Non-Credit.
If courseIs == "non-credit" hide subform Credit and show subform Non-Credit.

I KNOW this is probably as simple as it can get, but I don't know javascript and I can't find the answer.

Thank you in advance for your help.

Re: javaScript to hide/show a subform on a dynaform

Posted: Mon Jan 18, 2021 9:50 pm
by kirkwg
Hi,
Check below link an example see if able to help solve your issue, thanks.

https://forum.processmaker.com/viewtopic.php?t=708985

$("#sub-formID").hide() or .show() with conditions..
$("#53636300756923d020edb72091477248").hide();

Cheers...