You need to sign in to do that
Don't have an account?
Ganesh Kalepu
Hi , guys! ..
can anybody say how to restrict users to enter only '10' digit Mobile number in <apex:inputtext> field in vf page & to display error message if they enter an incorrect mobile number???
If you are saving to a record and are okay with having the message show up when the user attempts to save, you can use a validation rule (this would apply to the field in standard UI as well)
Option 2
In your apex class: In your Visualforce Page:
Option3
Use Javascript
All Answers
If you are saving to a record and are okay with having the message show up when the user attempts to save, you can use a validation rule (this would apply to the field in standard UI as well)
Option 2
In your apex class: In your Visualforce Page:
Option3
Use Javascript
Restrict the user by entering this code.
<apex:pageBlock id="thePageBlock">
<apex:inputText maxlength="10" label="Mobile" />
<apex:commandButton value="Press" />
show the apex message.
Thanks.
Regards
Sharad.