Web Form - Input Validation - Change Default Field Names Shown | Community
Skip to main content
ALangridge
Level 4
May 13, 2024
Solved

Web Form - Input Validation - Change Default Field Names Shown

  • May 13, 2024
  • 1 reply
  • 666 views

Hey all, 

Having a great time figuring out web forms - battled my way through the setup, post-submission code execution and now have gotten a lovely, useable, mobile-responsive landing page ready for use. 

My finalquestion is if there is a way to change the default error messages that show up during form input validation. To be specific, it's what you can see in the screenshot, the nice red box that pops up with "Field X is mandatory". 

Is anyone aware of if this is able to be named something else? Or am I going to have to look at making a fake field which writes to a ctx variable or something like that.

Thanks for your help!

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ALangridge

Never mind, answered my own question! 

Using the "data-nl-label" value changes what is displayed in the validation box, as long as you have the "bindto" value set to another field. 

This also seems to work for a service opt in style field too. 

1 reply

ALangridge
ALangridgeAuthorAccepted solution
Level 4
May 14, 2024

Never mind, answered my own question! 

Using the "data-nl-label" value changes what is displayed in the validation box, as long as you have the "bindto" value set to another field. 

This also seems to work for a service opt in style field too.