Validation of required fields in the xform editor - occurs in firefox

Vote:
 

Hi,

I'm having a major xform-headache trying to find a solution to this problem. Why are the required fields validating in the xform editor when the form is saved? Also, is there a fix for it?

/Nils

#59090
May 21, 2012 11:05
Vote:
 

You have a required field although the form is submitting even if you do not populate that field ?

#59094
May 21, 2012 13:16
Vote:
 

Hi!

In Firefox 4 and greater, there is built in validation for form fields. Unfortunately, EPiServer have been using an attribute “required” when editing an xform that now triggers validation of the actual form when trying to save it in the xforms editor. There is an easy fix for this though that can be applied in the EPiServerUI.Master file by adding the novalidate=”true” attribute to the form element:

<form id="aspnetForm" runat="server" novalidate="true">

This is fixed in EPiServer CMS 6 R2 so this information is valid for CMS 5/6 sites.

/Linus

#59095
May 21, 2012 13:28
Vote:
 

Thank you Linus. 

#59152
May 23, 2012 10:23
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.