November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Antonio,
If the need is to have data from all markets / languages be submitted to the same XForm, I think the best approach here would be to keep the XForms field requirements very limited, and then enforce your requirements in the MVC Validation.
You could consider adding something like Fluent Validation to your project to allow you to more easily organize and add complex validation to a form model. You could then somehow link that validation up to an Episerver field if you needed to dynamically manage which languages require certain data.
I'd also encourage you to check out the new Episerver Forms feature - which might more easily be able to suit the requirement if you are on the latest version.
Hope this helps,
/Matt
Hi, I'm working on an Episerver CMS 8 website. I need some design for my forms, so I've decided not to use the defaul Xforms, but:
1) create a form *.cshtml myself with the fields needed, applying needed design
2) create an xform with same fields
3) In a form controller, asign the form fields to xform fields, and save the xform.
This is working well right now.
Now the new requirement:
Is it possible that some fields are required for one country/language, but no required for another country/language
Regards.