I am using a Sitecore Forms string length validator which is working perfectly fine for English content, however if I am providing content in say Japanese language then in that case it is not working.

For example the validation doesn't work for this text when given more than the limit which is by default 512.


Same when given English language content then working fine.

Has anyone gone through such scenario or can suggest anything, does the option is custom validation only or is there anything provided by Sitecore here ?

1 Answer 1


You are able to create a custom validation message item on sitecore. First you need to create an item on /sitecore/system/Settings/Forms/Validations. enter image description here enter image description here After you need to create a custom code on Visual studio to render the message with the rule that you want, for example, field is required. After that you need to include your validation item on " Allowed Validations" /sitecore/system/Settings/Forms/Field Types/Basic/Single-Line Text if its a single line field as example. enter image description here Doing that you need to go to form builder insert you new validation rule on field that you want to implement.

enter image description here

Create a message for all languages that you need. you can use this blog post as a reference. https://ndiasitecore.wordpress.com/2021/01/22/custom-validation-message-sitecore-forms/

  • 1
    Thanks nick, your solution works so awesome !!! :) Commented Jan 25, 2021 at 11:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.