function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sdbsdb 

Customizing validation error messages for SiteLogin and SiteRegister

From a functionality standpoint these Site generated pages are working just fine for me. But I was wondering if there is a way to control the validation error message that is shown to the user when they hit 'Submit' without entering a value for a required field. For example, on SiteLogin if the user hits submit without entering a value for Username they see this message:

 

loginPage:SiteTemplate:siteLogin:loginComponent:loginForm:username: Validation Error: Value is required.

 

What I'd prefer to display is:

 

Username: Value is required.

 

Is there any way for me to change the message that is generated for validation errors on SiteLogin and SiteRegister?

 

Thanks!