London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Xform validation messages

Vote:
 

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?

#27605
Feb 04, 2009 10:46
Vote:
 

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!

#28504
Mar 12, 2009 11:38
Vote:
 

Hi Henrik,

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

#52178
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.