Configuring the Failed - Try Again Button
You can write an action script that controls the functionality of the
Failed - Try Again custom button.
Procedure
-
Open the
Interview Witness form in the Form Designer.
-
Click the
Failed - Try Again button, and go to its
Properties view.
-
Click the
Rules tab on the
Properties view.
-
Click the
Add Rule button against the event type
Select (select).
-
Add following inputs in the
Rule Details page and click
Next:
-
- Name:
- failed_try_again
-
- Label:
- Witness status = "TRY_AGAIN"
-
Leave the
Select (select) event type unchanged in the
Rule: Pick Events page and click
Next.
-
Click the
(plus) button in the
Define Actions page.
The
Add Action to Rule page opens.
-
Select options
Create a new action and
Script Action and click
Next.
-
Type the following values in the input fields:
-
- Name:
- failed_try_again
-
- Label:
-
Witness status = "TRY_AGAIN"
-
Type this script:
this.getForm().getControl("witstatus").setValue("TRY_AGAIN");
this.getForm().invokeAction("submit",this);
-
Click
Finish twice.
Copyright © Cloud Software Group, Inc. All rights reserved.