You need to sign in to do that
Don't have an account?
DevSFDC22
Validate user input on ui.
Hi,
I'm using an input field in visualforce and want to validate the user input on UI itself. Example: inputtext What is your country?
if user enter restricted country then error should come.
How I can achieve this ?
I'm using an input field in visualforce and want to validate the user input on UI itself. Example: inputtext What is your country?
if user enter restricted country then error should come.
How I can achieve this ?
Greetings!
You can simply create the validation rule based on the user input and use the field which will throw the error,if they entered the value on the Save function.
Otherwise,you can simply use the JavaScript function to validate the inputs.Please refer the sample code in the below thread.
https://developer.salesforce.com/forums/?id=906F000000095DwIAI
Kindly mark it as best answer if it helps so that it can help others in the future.
Warm Regards,
Shirisha Pathuri