Section | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
...
- form.load : This property is true when the form is first loading. It is useful for setting default values via rules that you need to be set before the user starts interacting with the form. This also holds true for flows. This property is true when each step of a workflow is first loading.
- form.unload : This property is true when users click the form's submit button. It is useful for setting control values just prior to the execution of the form's Doc Actions and Form Actions. This also holds true for flows. This property is true when the user clicks the continue button for each workflow step.
- form.positionUpdated : This property is used for the Geo location feature. You can fire a rule using this special identifier every time the position is updated.
Examples of identifiers used in rules are:
...
For example add a hidden text control to your form named jsonUserData. Add a single line to the rule that retrieves the user Data from your backend system via the http.get():
Code Block |
---|
var result = http.get(requestUrl); jsonUserDate.value = xresult; |
In other rules that also need the user data, rather than calling http.get() to your backend system again, add the following line to your rule:
Code Block |
---|
var x; var val = jsonUserDate.value; eval('x' = val); |
This will have the affect of setting x to the same string as if you had again fetched content from your backend system.
...