Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Quick Question about Button Visibility!

Avatar

Former Community Member
I have a form, and I only want the "submit" button to show up after the user has checked a checkbox. I have it showing and hiding by applying this code the check box "Click" event.



if (this.rawValue == "1")

EmailSubmitButton1.presence = "visible";



else

EmailSubmitButton1.presence = "invisible";



But the thing is, I want the button to be invisible initially, whenever i do that tough, I've tried different things, it never reapears when the box is checked.
1 Reply

Avatar

Former Community Member
Make sure your form is saved as a dynamic form.