Try our conversational search powered by Generative AI!

Xform validation messages


Hi all,

I'm using xforms within a site but, when a field fails validation, I'd like to show a descriptive message before the field rather than an asterisk after the field. Is there an easy way to do this?

Feb 04, 2009 10:46

Hi, I guess you already find out how. But for all others thats searches the forum the solution can be nice.

You can add a <asp:ValidationSummary > control and connect your xForm with the property ValidationGroup.

<asp:ValidationSummary ID="XFormValidationSummary" runat="server" ValidationGroup="XForm" />
<xforms:xformcontrol runat="server" ID="FormControl" ValidationGroup="XForm" />

There is also some Global.asax hack (or code in the code behind of the xForm usercontrol) to use to extend the behavior for the xForm validation. Check the PublicTemplate package!

Mar 12, 2009 11:38

Hi Henrik,

u r using the tag <xforms:xformcontrol> it means u r not creating an xform in ADMIN mode in EPIServer?

Jul 11, 2011 6:38
* 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.