AddToErrorMsg

Adds the specified value to the existing value for the page variable ErrorMessage.

Member of namespace:

MC_Validation

Syntax:

bool AddToErrorMsg(StrParam)

Parameters

  1. A smart parameter or regular string to add to the error message variable.
  2. Optional comma separated second parameter to trigger the action to return True.

Returns

True, if the optional second comma separated parameter is used. Otherwise, False.

Level

Field level.

Details

This action adds the specified value to the existing value for the page variable ErrorMessage.
Example:
AddToErrorMsg("Invoice Number must be 60% numeric with a 
minimum length of 2.")