Command Option

How Can We Help?

< Back

Scenario

Inside the command option, is it possible to run the script when a trigger button is being clicked and before the OnSubmit method? For instance, removing a required field setting for all controls when a “Cancel/Discard” button is being clicked.

 

Explanation

Once a trigger button is being clicked, XMPro engine will run all the OnRefresh method under the activity by the following sequence:

Activity Managed Code OnRefresh > Each of the control with OnRefresh method written by Index order.

The below example shows how to identify if the trigger button is being clicked at OnRefresh method.

 

Example

Get the Command Option object group with the below script at the OnRefresh method in one of the control / at the managed code of the activity.

Comments are closed.

This is the legacy version of the XMPro Documentation site. For the latest XMPro documentation, please visit documentation.xmpro.com

X