Creating Rules that Hide Hints on Exiting Amount Controls

You can create a rule that hides the hint created in the previous rule as part of the previous task when exiting the Claim Amount or Third Party Amount controls.

You can see the previous task here.

Procedure

  1. Select Claim Amount control on the Capture Claim form.
  2. Click the Rules tab.
  3. Click the Add Rule button against the event type Exit (exit).
  4. Add the following inputs on the Rule Details page and click Next:
    • Name:
      hide_rounding_hint
    • Label:
      Hide hint on exiting claim amount controls.
  5. In the Rule: Pick Events page, leave the Exit (exit) event type unchanged in the Choose Events page and click Next.
  6. Click the (plus) button in the Define Actions page.

    The Add Action to Rule page opens.

  7. Select options Create a new action and Script Action and click Next.
  8. Type the following values in the input fields.
    • Name:
      hide_rounding_hint
    • Label:
      Hide hint on exiting.
  9. Type this script and click Finish:
       var hint = "";
       context.control.setHint(hint);
  10. In the Define Actions page, select the Shared check box against the action.

    This will make the action shared.

  11. Click Finish.
  12. Edit the newly created rule and add an additional event by selecting the rule Hide hint on exiting claim amount controls in the Outline view, and then selecting the Events tab.
  13. Click the (plus) button and in the Select Event page select the event type Third Party Amount (ThirdPAmount), Update and click OK.

    This starts the rule when specifying the controls Claim Amount and Third Party Amount.

    Note: As a result, whenever you exit the controls Claim Amount and Third Party Amount, the hint is hidden.