Documentation > CMS Template API Library > PostInputContext > ValidationErrorFields
ValidationErrorFields
Fields whose names are a key in ValidationErrorFields will be highlighted, and will show the value as the error message.
Type
Dictionary<String,String>
Code Example
C#
Sample:
context.ValidationErrorFields.Add("my_field", "This field has an invalid value!");