Script Types, Wizard Validator
| Next >>

Wizard Validator scripts allow you to perform tasks and remove pages when moving through various wizards.

Each script has Template script code that details the Events that will activate the script. Entering code in the Case for an event will make the script do what you require when that Event occurs. Load the Template script code by clicking the ScriptCodePaste icon from the button strip at the bottom of the form).

Example

The following example uses the Template script.

To follow the example, select Scripts from the Admin menu, then click Add Button and select Wizard Validator type and Account Withdrawal Object. Give your script a name and Description.

Objects you can select to validate are:

WizardDescription
Account Balance AdjustmentAdjusting the Accounts Principal, Interest and/or Fee balances.
Account CloseClosing an Account.
Account Credit LimitChanging an Account's Credit Limit.
Account Default InterestChanging the Overdue Interest Rate charged to an Account.
Account Interest RateChanging the Interest Rate charged to a Revolving Credit Account.
Account PaymentMaking a payment to an Account.
Account Payment Arrangement AddMaking a Payment Arrangement or a Promise for an Account.
Account Payment ReverseReversing a Bank Transaction for an Account.
Account RestructureRestructing the Contractual Payments for an Account.
Account SuspensionChanging the Suspension Status of an Account.
Account Transaction ReverseReversing a Journal transaction for an Account.
Account WithdrawalMaking a Withdrawal or Refund from an Account.
Client Statistic SetChanging the Statistic Set for a Client.
New AccountAdding a new Account.
New ClientAdding a new Client.
New UserAdding a new User.

Select the Script Code page and click ScriptCodePaste to paste the Template script code. Add the outcome code as per the image below. Valid Outcomes are:

NameValue
None0
Pass10
Fail20
Refer99

Setting the "Summary" & "Log" pages to 20 (Fail) means the wizard will not show either of these pages when making a Withdrawal, even if the User selects to create a Log earlier in the wizard.

The script must be selected in Global Settings, Accounts, Scripts, Wizard Validators, AccountWithdrawal before it will affect the wizard.

Script Types, Wizard Validator