Developer Function: Script: $p.events.after_validate
## Overview
This section explains how to specify a method to be executed after a validation check. Use this to check whether the value entered in the item is correct.
## Syntax
##### JavaScript
```
$p.events.after_validate = function (args) {
//Processing content
}
or
$p.events.after_validate_{Value of the data-action attribute} = function (args) {
//Processing content
}
```
*Get this if you want to explicitly write the value of the data-action attribute of the button that will cause the event.
## Usage Example
After setting the following sample code to the Pleasanter script and setting the output destination to "Edit", the data will only be updated when you enter 100 in number A and press the "Update" button on the edit screen (in this example, the value of the data-action attribute, Update, is explicitly stated).
##### JavaScript
```
$p.events.after_validate_Update = function (args) {
return ($p.getControl('NumA').val() != 100
? false //When it is false, the process stops and the update does not occur.
: true //If true, it will be updated.
);
}
```
## Related Information
[FAQ:$p.events.on_editor_loadを複数設定できるようにしたい](faq-multiple-on-editor-load)