#69035EXT:form - Allow rules inside form objects
Description
Right now it’s necessary to place the validation rules within a separate area, i.e. they belong directly to the FORM object.
10 = FORM
10 {
10 = TEXTLINE
10 {
name = lastName
label = Last name
}
...
rules {
10 = required
10 {
element = lastName
}
20 = alphabetic
20 {
element = lastName
allowWhiteSpace = 1
}
}
}
When having a lot of fields the whole setup will be become very cluttered. Therefore it would be better to be able to have the validation rules directly stored inside the specific FORM objects.
10 = FORM
10 {
10 = TEXTLINE
10 {
name = lastName
label = Last name
rules {
10 = required
20 = alphabetic
20 {
allowWhiteSpace = 1
}
}
}
}
For backward compatibility the rules should still be possible outside the FORM objects. Furthermore it still makes sense to define rules at this central position (for exampling setting up global spam rules).
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.