cancel
Showing results for 
Search instead for 
Did you mean: 

how to restrict number of characters for an input field

Former Member
0 Kudos

Hi All,

I have an input field.

The max number of characters for this input field is 10.

when a user enter more then 10 characters. it should prompt for an error or the input field should not allow to accpet the 11 character.

how we do this in VC.

need your helpful answers

Rgds

Srinivas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Srinu,

open the control properties of your input field and go to the display tab, there you can define the maximum numbers of characters.See the attached picture.

Best Regards,

Marcel

Former Member
0 Kudos

Hi Marcel,

i cant see any settings for the number of characters.

and the image which u sent is not opening.

can u explain more how to do this.

rgds

srinivas

Former Member
0 Kudos

hi marcel,

i got it.

thanks for your solution

rgds

srinivas

Former Member
0 Kudos

hi srinu

Can u expain the solution to me as i have the same requirement

Thanks & Regards

Jaspreet Kaur

Former Member
0 Kudos

hi jaspreet,

open the input field properties dialog box,

select display tab, in that u can see Max len(pxls),

set this value to the desire value

rgds

srinivas

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Srinu

You could achieve this by configuring error messages under the formula:-

Select the control properties and in the Input field at the Display tab write the formula

"IF((@<LEN(text)>10),'appropriate message','Records available')"

Note :- there is a LEN(text) under text functions in formula tab.

Regards

Navneet

Message was edited by:

Navneet Giria

Former Member
0 Kudos

hi navneet ,

thanks for your prompt reply but my issues is ,the input field should not allow to entry the 11 character, means after 10 char the cursor should move forward. can we do this

rgds

srinivas