Triggers: Difference between revisions

5 bytes removed ,  6 October 2016
m
no edit summary
mNo edit summary
mNo edit summary
Line 187: Line 187:
Using scripts, you can check the correctness of input data. For example, perhaps a field integer values ​​are allowed only from 0 to 200.
Using scripts, you can check the correctness of input data. For example, perhaps a field integer values ​​are allowed only from 0 to 200.


<source lang="javascript" line>
<source lang="javascript">
var num = entry().field("Number") // Get the value of field Number
var num = entry().field("Number") // Get the value of field Number
if (num < 0 || num > 200) {      // Test for value matching allowable range
if (num < 0 || num > 200) {      // Test for value matching allowable range