Display the field name in validation error messages

16 views
Skip to first unread message

Beth Fraser

unread,
Jun 29, 2018, 10:07:45 AM6/29/18
to Hippo Community
Hi,

When a CMS user tries to save a document that is not valid, the field is highlighted red and an error message is shown at the top of the editor page (1). However, I would like to also display the name of the field in or next to the error message, e.g. "Title - This field is empty" or "Title is a required field". In particular I'd like to be able to do this when using the built in 'required' validation. Is this possible without having to write my own custom validator?

Thanks,

Beth

(1) when using the full editor - I can see that the visual editor in the Channel Manager perspective already does what I'm looking for, but our users will be using the full content editor as well. 

Jasper Floor

unread,
Jul 3, 2018, 6:55:47 AM7/3/18
to Hippo Community
Hi,

I don't think this is possible with the built in validators. Especially the required validator is problematic as this is not an ordinary cms validator but hard coded into the validation class. 

The visual editor and the document view are actually separate implementations so the behavior differs as you have seen. 

You could add a feature request in JIRA. For any requirement that is time sensitive you will need your own implementation.

mvg,
Jasper


--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-community@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages