function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kali charankali charan 

To write Validation on input field in Visualforce Page

Hai,

1) I have two inputFields in visualforce page,both are picklist values it should validate if both picklist values should not repeat twice & it should be allowed if one picklist value is repeated.

2)I have a number field it should be allow the values between 80 &100

How to write validation in controller.please can anyone tell me...
SonamSonam (Salesforce Developers) 
Kali,

Check the code sample provided on the thread:https://developer.salesforce.com/forums/?id=906F000000091anIAA