Variables not consistently updating OnSelect of Button
I have a form with multiple sections that each have a Submit Button. On the Submit Button's 'OnSelect' property, I have a few variables that update a field, toggle a dialog window, and update the OnStart of a Timer. Once the timer begins, the form is submitted -- this ensures that all variables have been updated prior to the form submitting.
Unfortunately, sometimes when clicking the button, it seems as if the timer is not starting. Therefore, the end user clicks the button and only the pop-up shows. I tested by removing the timer entirely, and just putting SubmitForm on the OnSelect of the button, however, again, sometimes it submits and other times nothing.
I had an UpdateContext for the variables, but then changed to just setting the variable and this doesn't seem to change the behavior.