Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

app.showErrors

Description

Clears the screen and shows an error popup on the entire screen. Takes an array of error messages so you can show multiple messages at one time.


Basic Example: 

 

Code Block
languagejs
app.showErrors(parameters);

 

The errors array should contain at least one object that requires the key 'message.' In addition, 'code' can be used to supply an error code in parens at the end of the message.

Parameters

 

NameRequiredTypeDefaultDescription
errors (app.showErrors)
Yes
array
 

An array of messages for display. Each item in the array should be an object that requires the key 'message' and can optionally take the key 'code.'

Code Block
languagejs
[{
    'message' : 'Bad Number',
    'code'    : '123313'
}, {
    'message' : 'Too short'
}];

 

An example Error Screen
This error screen is a result of the app.checkRequired function. If you manually form your on errors array, it will look the same. 
Image Added