[Xsltforms-support] Validation with Regular Expressions
Brought to you by:
alain-couthures
From: William V. <wi...@bi...> - 2012-02-16 13:55:33
|
Hi list, I'm couldn't find clear documentation about the right way of validating a field vs a regular expression (ie. email, credit-card, phone) client side (you can always validate on server vs schema, but this is not the case). I've found in XForms documentation and other sources various methods to do this, but I'm not sure XSLTForms can support them: - Specifying an Schema for the instance - Using custom datatypes in the type attribute of xf:bind - Using user defined functions in Javascript and calling it from bind constraints or xforms-value-changed event handler - Maybe other... Can somebody state the best method to do this with XSLTForms. Thanks for all the help you can provide, Bill |