Hide last authors
Achraf El Kari 4.1 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
Achraf El Kari 5.1 8 I want to make validation on my firstName to not exceed 20 chars, i can do it by XSLT like this :
Achraf El Kari 4.1 9
10
11 [[image:1666099830526-443.png]]
12
13
Achraf El Kari 5.1 14 First step, I create a variable to get the form value, then I test on this value, here the result :
Achraf El Kari 4.1 15
16 [[image:1666099913266-344.png]]
17
18
Achraf El Kari 5.1 19 It works very well =)
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian