JavaScript – Execution order in 8.3

Facebooktwitterpinterestlinkedinmail
Applies to version 8.3.1.x; Author: Grzegorz Straś

Update BPS 2017.1 – Form rules have replaced JavaScript fields which influence the form. JavaScript can still be used inside form rules. The order in which form rules are executed can be found here:

http://howto.webcon.com/form-rules-execution-order/


In WEBCON BPS, JavaScript executed on page load and on value change will be performed in a predefined order. These scripts can be included in workflow, step and form field configurations – and the order in which they are executed depends solely on where they are defined in Designer Studio.

Listed below are the orders in which scripts are executed:

a) Whenever the page is loaded

b) When the value of a form field is altered (only with postback on value change active).

 

JavaScript sequence whenever the page is loaded:

OrderConfigurationTabJS field nameVisualNote
1
Form field configurationStyle and behaviorScript to be registered
link

According to form field ID

2
Workflow configurationBehaviorJavaScript to be registered on the webpage
link
3
Step editGeneralJavaScript executed on page load
link
4
Workflow configurationBehaviorJavaScript to be executed on page load
link
5
Workflow configurationBehaviorJavaScript to be executed on page load and on postback
link
6
Step editGeneralJavaScript executed on page load and on postback
link

 

JavaScript sequence on value change:

If the Change of value causes postback checkbox is set in the form field configuration, the order of running JavaScript (whenever that form field’s value is modified) is as follows:

OrderConfigurationTabJS field nameVisualNote
1
Form field configurationStyle and behaviorScript to be executed on value change
link
2
Form field configurationStyle and behaviorScript to be registered
link

According to form field ID

3
Workflow configurationBehaviorJavaScript to be registered on the webpage
link
4
Workflow configurationBehaviorJavaScript to be executed on page load and on postback
link
5
Step editGeneralJavaScript executed on page load and on postback
link

Leave a Reply

Your email address will not be published. Required fields are marked *