Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Add out of the box validator to the custom form field/element.

Vote:
 

I have implemented a custom form element but would like to add the RequiredValidator(like the below snap) to my form element. Could you please let me know how this can be accomplished?

Validators  Required

Error message 

 Regular expression

 Email

 Date (DD/MM/YYYY)

 Date (MM/DD/YYYY)

 Date (YYYY-MM-DD)

#306866
Edited, Aug 16, 2023 5:16
Vote:
 

[AvailableValidatorTypes(Include = new[] { typeof(RequiredValidator)})]

Add this to your custom form element

#307032
Aug 18, 2023 11:29
* 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.