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.
Button Functionality Issue- not firing
-
- Posts: 26
- Joined: April 7th, 2022, 4:17 pm
- Contact:
Button Functionality Issue- not firing
word count: 192
-
- Posts: 329
- Joined: August 26th, 2021, 9:18 am
- Contact:
Re: Button Functionality Issue- not firing
When the button is clicked are all the fields visible on the page? Is there any error in the browsers console?
word count: 21
-
- Posts: 26
- Joined: April 7th, 2022, 4:17 pm
- Contact:
Re: Button Functionality Issue- not firing
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.
word count: 59