I want to display a panel when a button is clicked in my Nintex Form.
I don't want to use a checkbox to initiate the action as I have other buttons that submit and cancel, this option is to capture some additional info before the form is submitted.
How to Show/Hide a Panel based on Button click
In my case I’m showing a Panel when a Close button is clicked, change the names/id’s to suit your scenario
Create a Single Line Textbox
Create a rule for the Panel you are trying to Show/Hide
Set the condition so that the Panel is hidden unless the Textbox has a value of 1
NWF$('#' + closingID).val(1).trigger('blur');
NWF$('#' + closingID).val(0).trigger('blur');
The key bit here is the trigger('blur') otherwise the value sets but the rule won't fire
If you want to re hide the Panel - call the hidePanel function on another Button