Zum Hauptinhalt gehen

How to enable "Reset" of a form dynamically?

Kommentare

1 Kommentar

  • Permanently deleted user

    Yes this is possible, I have done this multiple times.

     

    You need to first save all the user input from the display form to another object/variable because the standard behavior of a form is that it resets on reload, in which case you lose the earlier user input.

     

    Then you need a variable that tracks if a reset needs to happen or not. You can do this by for example customizing the button bar in the form. If a user exits the form you can retrieve which button they choose which you can use to set the value of the reset variable.

     

    You need to ensure that the user returns to the display form, i.e. you need to connect it to itself. Sometimes this doesn't work so I put an empty container after the display form and connect the container back to the display form: 2020-11-12_08h19_37Finally you need to create a subworkflow on the loading of the form, I do this by selecting the title of the form, then navigating to the right side of the screen to events, unfolding the dropdown and clicking on add next to load. In the new subworkflow you use a switch to test what the reset value is. If it is yes you don't need to do anything else, the form auto-clears. If it is no then you use the Set Form Element Property, Set Form Element Item and Set Form Element Item Property to re input the user values you saved.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.