• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Helper Program not Called on Field Change Using AppVar

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Helper Program not Called on Field Change Using AppVar

    On 6.4, I have a form widget that calls a helper program on creation and on Field Change after 1000 milliseconds. The program checks all the values in the form to make sure they are within requirements for the user to go to the next menu. If everything looks good, it changes an app variable that is tied to enabling/disabling a button which allows the user to go to the next menu.

    image.png?

    Most of the fields on the form are filled in automatically based on saved user information, but they must always select an end-of-shift time to be able to log in, so this is usually the only field they actually have to edit.

    image.png?

    Clicking the button on the form will bring up a pop-up to give them intervals of time within 14 hours to set as their clock-out time.
    image.png?
    Once they select one, that sets an App Variable which is linked to the field for "Date And Time Your Shift Will End?" on the form
    image.png?
    However, as you can see, even though every field is now filled out, the log in button is still greyed out.

    If I change any other field on the form, the button will then be enabled and i can continue, so it seems to be an issue with changing a field via linked app variable not triggering the on change call to the helper program.

    Any help on this would be appreciated, thank you!

  • #2
    How is the "Log In" button getting enabled? By an app variable? If so, is the form helper program setting that app variable?

    Comment


    • #3
      Exactly as you say, I have a (poorly named) app variable called "Hidebutton" tied to the "Disable" link on the "Log In" button. In the helper program, depending on if all of the fields pass my validation code, it either sets the value of "Hidebutton" to "true" or "false".

      Monitoring the app variable in the dev console, I can confirm that the variable is only changing after changing any other the other fields, which are all either drop down menus or text fields.

      Comment

      Working...
      X