Wiki source code of Validation
Version 4.1 by Achraf El Kari on 2022/10/18 15:32
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | Setting a validation to a form is possible with an XSLT code. here is an example : | ||
2 | |||
3 | |||
4 | Bellow a user's form : | ||
5 | |||
6 | [[image:1666099299150-670.png]] | ||
7 | |||
8 | I want that my firstName not exceed 20 chars. All I can do is make validation on the input : | ||
9 | |||
10 | |||
11 | [[image:1666099830526-443.png]] | ||
12 | |||
13 | |||
14 | First step, I create a variable to get the form value, then test on this value, here the result : | ||
15 | |||
16 | [[image:1666099913266-344.png]] | ||
17 | |||
18 | |||
19 | It works vert well =) |