A choice to not run form's load event when returning to a pre visited form
Not plannedYou can set the reset property of a Display Form to false if you don't want a pre visited form to reset when returning to it. When returning to a form, the on-load event is fired, so if you have some logic that sets the content of the form on-load, the form is still reset, regardless of the reset setting. Therfore, I would like a setting in the form to prevent the on-load event to fire upon returning to the form.
-
I use a variable in the workflow to achieve this. Create Value =false before loading the form, change it to true in your load logic with something like Set Property, and place an If to check the variable before running the load logic.
0 -
I think Zack's solution is the best way to address this. The "load" event might be used for things other than resetting. Using your own value to track the special case allows you to check for it in the load event and adapt accordingly.
0
Please sign in to leave a comment.
Comments
2 comments