Page 1 of 1

Button Functionality Issue- not firing

Posted: October 14th, 2022, 12:29 pm
by mollydunn
I've recently run into an issue with one of my buttons not firing.
I have a widget to Add or Edit a user, which has a visibility value that determines whether the Add or Edit button should show. In editing a user, I have no issues and the button and widget function as they should. However, when I try to add a user instead, the Add button is not firing on click.
The Add button is in the same place as the Edit button, set up the same, with the event parameters being the same except for one constant value, Action (which has a value of Edit or Add respectively).
I have tried deleting the event and rebuilding, as well as deleting the control as a whole and starting over and still no luck. I have had issues previously with a button not firing, but in those cases the fix is often changing from using a field value in the parameter to using a model value. In this case, It is necessary to use field parameters, and the edit event is functioning properly with the parameters being set to field values.
image.png
image.png

Re: Button Functionality Issue- not firing

Posted: October 14th, 2022, 12:37 pm
by SteveCap
When the button is clicked are all the fields visible on the page? Is there any error in the browsers console?

Re: Button Functionality Issue- not firing

Posted: October 14th, 2022, 5:52 pm
by mollydunn
I was able to determine the issue was due to the visibility of some controls. The ForcePasswordChange checkbox control is set to not be visible when adding a new user, so to resolve this I changed the "RenderIfNotVisible" property value to True. The button was unable to fire when referencing a field that was not visible and not rendering.