+ Start a Discussion
saimadhusaimadhu 

how to restrict the size of the field

Hey, I want to to read 7 digit no 

i tried with input text like

 <apex:inputtext value="{!phoneno}" id="no" size="7"/>

 it showing 7 digit width but accepting many.how can i restrict this field to 7 digits.

Best Answer chosen by Admin (Salesforce Developers) 
S91084S91084

Hi saimadhu,

 

size is mentioned when you want to set thw width of the inputfield.

Use maxlength to set limit on the characters you would like to specify for the field.

All Answers

S91084S91084

Hi saimadhu,

 

size is mentioned when you want to set thw width of the inputfield.

Use maxlength to set limit on the characters you would like to specify for the field.

This was selected as the best answer
saimadhusaimadhu

thank you so much