Sitefinity - Validating Custom Form Field

1k Views Asked by At

I have a class MyField that extends FormField (it is a custom Form Field I can add via Form Builder). I have one field in the .ascx file:

<telerik:TextField ID="Status" CssClass="sfTxtID" style="visibility:hidden;" runat="server">
</telerik:TextField>

Currently, if the user presses the Submit button the form submits even though the Status TextField is empty.

My question is: How can I validate my field when the submit button is pressed and show an error if its not filled out?

1

There are 1 best solutions below

1
Jon R. On

Hidden controls do not get checked by validation. Microsoft