Hi Norman,
you can create custom form field validator the same way as in 4.5:
[url]http://documentation.magnolia-cms.com/modules/form.html#Creatingacustomregularexpressionvalidator[/url]

[quote]Besides that, in the demo project, I can not assign any validators to 
the form fields[/quote]
The selection of validators will be available in Form Module 2.1 which will be 
part of Magnolia 5.1, see 
[url]http://jira.magnolia-cms.com/browse/MGNLFORM-179[/url]
but you can set the validation property manually from JCR browser, for example: 
/demo-project/service/contact/content/singleton/fieldsets/0/fields/NUMBER_OF_YOUR_FIELD:
 add validation property to this node and set its value to 
NAME_OF_YOUR_CUSTOM_VALIDATOR

Hope that helps
Roman

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=812ce517-c9a5-4e31-bac6-a4ac3ba02ae6


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to