Disable email validation i Xforms editor

Vote:
 

Hi!

If the submit button in the Xforms is configured to send the result to an email address you get to enter a sender e-mail address and a receiver email address. When the form is saved these fields are validated as email addresses. I would like to disable this validation. Is that possible?

Bakground: I want the sender email address to be a field in the form. To connect the email sender address to a form I would like to use a variable %%field_name%%, but %%field_name%% is not a valid email adress. Validation fails, and the form cannot be saved.

Regards,
Mårten

#59161
May 23, 2012 11:55
Vote:
 

The only way I can see is to remove the validation directly in the user control. It's located in the ui folder, in my case C:\Program Files (x86)\EPiServer\CMS\6.1.278.0\Application\UI\CMS\Edit\XFormFieldProperty.ascx. The button where you want to remove the validation is:

<EPiServerUI:ToolButton id="ButtonSaveButton"  Text="<%$ Resources: EPiServer, button.save %>" runat="server" OnClientClick="if( validateEmail( 'FormEmailRecipient', '___erroremail' ) && validateEmail( 'FormEmailSender', '___erroremail' ) ){fieldPropertiesSubmitSave();}"  GeneratesPostBack="false" />

Regards
Linus

#59179
May 23, 2012 13:43
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.