How do I restrict a single line text field to 15 characters only?

hemanth16
Tera Contributor

Hi,

I need to restrict the first name and last name fields more than 15 letters 

Can you help me on script?

Thanks in Advance!!

1 ACCEPTED SOLUTION

Can you please try 
g_form.addErrorMessage Instead of showErrorBox.


***Mark Correct or Helpful if it helps.***

View solution in original post

17 REPLIES 17

Can you please try 
g_form.addErrorMessage Instead of showErrorBox.


***Mark Correct or Helpful if it helps.***

or use 

g_form.showFieldMsg('');

***Mark Correct or Helpful if it helps.***

hemanth16
Tera Contributor

Hi Yousaf,

Can you help me on the script ?

first name + last name should not be greater than 15

Thanks in Advance!!