You can automatically run a script from various parts of the system and this is a cool way of updating card only is details are missing.
Currently the list of 'actions' are:
| MAILOK | If client has a valid e-mail address |
|---|---|
| INSUOK | If client has valid Insurance details |
| MOBILEOK | If client has a valid mobile telephone number |
| TRANSACTION OK | If a transaction is current |
The [GOTO tag can also be used to control this by looking at some of the reserved words.
If E-Mail is set to Yes, YDU or NCC then no action will be taken the script will exit. If E-Mail flag is set to No then the protocol will continue.
This can be used to run a script only if there is no valid mail address.
There are Setv option to set/edit the E-Mail address. They could be used like:
[]!E-Mail {
Exit [abort]
Confirm Mail OK [setv okmail]
Remove Mail Address [setv noemail]
Add/Edit Mail Address [line //&email//], [setv email]
}
Note: The //&email// sets the default for the question.
This is shown in example Setting E-Mail Details.
An entry of 'NO' will be taken as not being insured.
This is shown in example Setting Mobile Details.
| Note: When mailok, insuok and mobileok are used - normally if the protocol is called automatically or via AP they will cause the script to exit if set - they will NOT exit if called via the pr'O'tocol menu option. |
See also HEADUP to stop the screen being cleared when not needed.