Expand my Community achievements bar.

Submit Button Hidden, Visible, Disappear

Avatar

Level 1

I need to have a submit by email button that is hidden until a box is checked. Then once the user clicks the submit button then both fields disappear.

My check box is named: StaffSubmission

My submit by email button is named: StaffSubmit

Thank you for helping

1 Reply

Avatar

Level 7

If formcalc:

in the change event of the checkbox put:

if ($ == 1) then

StaffSubmit.presence = "visible"

else

StaffSubmit.presence = "hidden"

endif

in the click event of the button put:

StaffSubmission.presence = "hidden"

$.presence = "hidden"

in the docReady event of the button put:

if (StaffSubmission == 1) then

$.presence = "visible"

else $.presence = "hidden"

endif