Support > Repository > Check the input

I will explain the input check function provided by Wagby.

Various input check functions are prepared according to type.By using expressions, complicated input checks can also be made.

There are "real time method" and "server check method" for input check.Please check the manual of each input check as to which is used.

The former is checked with client side JavaScript (on the web browser).When an error occurs, the input item is surrounded by a red frame and the reason for the error is displayed.

Figure 1 Real-time example

The latter is checked on the server side at the timing when the button such as "save" is pressed.When an error occurs, a message is displayed sturdy on the screen.Also, the background color of the item that caused the error will change.

Figure 2 Example of server check method

Points to note when using the wizard

The wizard presupposes that there is no input error on the screen at that point in order to proceed.Therefore, at the timing of going to the next screen, the value of the current item is once sent to the server and the server check is applied.If there is an error, you can not proceed to the next screen.

Input check in upload update

The input check rule is applied in the upload update process in the same way.At this time "real time method" is replaced with "server check method", the same check processing will work.

In fact, the "real-time method" is checked by double checking the web browser and server.
(1) Required/warning
There is a method of always entering mandatory check and a method of keeping warning display.
(2) Prohibited character string
You can specify a character string (prohibited character string) that does not allow registration.
(3) Character count check
I will explain how to check the number of input characters.
(4) Identical item value check
Determine whether two items are equivalent. For example, you can use this function when you want to provide "confirmation input field" when entering a mail address.
(5) Range check
You can specify the range that can be entered for numeric type and date type.
(6) Regular expression check
You can use regular expression expressions to specify a string pattern to be registered.
(7) Other item comparison check
For numeric and date type items, you can specify a constraint condition such that the value of one item is "bigger" or "smaller" than the value of another item (in the same model).
(8) User defined check
You can perform original input check using arbitrary expressions. You can also write a message when an error occurs.
(9) Allowable character type
You can check if it consists only of characters specified by allowable character types. For example, you can make settings such as input errors except for katakana and blanks.
(10) Complex check/consistency check using script
Using scripts, you can perform complicated input checks and check consistency (check the validity after input).