Dac Thach Nguyen
Feb 20, 2019
  5358
(8 votes)

Custom validation message for Forms

In Forms 4.23 we have released a feature that allows user can enter a custom validation message for each validator. Let say that you have some forms which used the same some validators (ex: RequiredValidator). When visitor enter something not correct, by default the form will display message stored in xml lang files. And there's no way to custom that message for different elements in different forms. But now it is easily done by editor.

First go to edit the field and enter the message on textbox next to it:

Publish the element, form and go to view mode to see the result:

That is, it's simple, right?

Feb 20, 2019

Comments

Praful Jangid
Praful Jangid Feb 21, 2019 06:33 AM

Nice feature.

Are we going to need something (just like we use @Html.ValidationMessage) to render this message?

Dac Thach Nguyen
Dac Thach Nguyen Feb 27, 2019 06:55 AM

No, the message come along with the validator and display using js. You don't need to modify template to have that feature.

Please login to comment.
Latest blogs
How CMS Implementations Need to Change for GEO and AEO

Search is changing. AI systems are increasingly the first point of contact between your content and your audience, and they don't behave like...

Andy Blyth | Mar 27, 2026 |

VirtualText 2.0.0 beta for Optimizely CMS 13 previews

DavidHome.Optimizely.VirtualText   2.0.0 has been released as beta for Optimizely CMS 13 previews. This is a major technical release. The focus is...

David Drouin-Prince | Mar 27, 2026 |

Technical Q&A for CMS 13

This blog post explains what to expect when planning to upgrade to Optimizely CMS 13. It answers common technical questions about what’s involved i...

Luc Gosso (MVP) | Mar 26, 2026 |

Custom Property Editors in Optimizely CMS 13

When the world  first saw how to create custom editors for Optimizely CMS  back in 2012, it was a game-changer for Javascript developers. For the...

Grzegorz Wiecheć | Mar 26, 2026