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?
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!
u r using the tag <xforms:xformcontrol> it means u r not creating an xform in ADMIN mode in EPIServer?