Try our conversational search powered by Generative AI!

Validation message (warning) on form Element

Vote:
 

Hi is it possible in EpiServer Forms to create a validation message on a form element? I want to create a warning message when an element hasn't been set to required when publishing the element.

This is a validaton message in the episerver backend, not in the front end (website).

#200111
Jan 02, 2019 9:41
Vote:
 

If you create the standard IValidate class for the element you want you should be able to add custom validation which will be triggered when trying to publish. As per standard with IValidate you can raise these as errors, warnings or information. http://www.jondjones.com/learn-episerver-cms/episerver-developers-guide/common-web-page-component-tutorials/how-to-return-different-validation-warnings-to-content-editors-when-publishing-content-in-episerver

#200115
Jan 02, 2019 11:01
* 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.