cancel
Showing results for 
Search instead for 
Did you mean: 

Validating XForm data

dcairns
Champ in-the-making
Champ in-the-making
Forgive the noob question, I haven't been able to find any doc related to this topic yet.

Here goes…Is there a way to validate fields on submission of xform data?
e.g. user fills in fields in xform generated by xsd and submits content to generate new asset, server validates for things like strings not exceeding max length requirements, 1 date field value is set to a future date in relation to another date field etc…
3 REPLIES 3

arielb
Champ in-the-making
Champ in-the-making
this should be all validated right now if you are putting those constaints inside of your schema.

dcairns
Champ in-the-making
Champ in-the-making
Thanks for the reply.

Perhaps those weren't the best examples I gave…the schema spec does allow for basic validation of it's values.

I guess my real question is, is there any way to easily extend/customize the way the web forms are validated for possibly more complicated use-cases beyond simple field validation?

arielb
Champ in-the-making
Champ in-the-making
at the moment - not so much.

can you give some examples for the type of validation schemes you're looking for?