You need to sign in to do that
Don't have an account?
Nick Keehan
Visualforce - Require on or the other field to be entered
Hi guys.
Looking for a piece of code to allow me to Validate that one or the other field has a value inside. These are custom fields in VF so i cant create a object validation rule as these are just input text fields.
e.g. Field 1 or Field 2 must be mandatory.
Using a standard controller and Ext Controller.
Any help would be great.
Nick
Looking for a piece of code to allow me to Validate that one or the other field has a value inside. These are custom fields in VF so i cant create a object validation rule as these are just input text fields.
e.g. Field 1 or Field 2 must be mandatory.
Using a standard controller and Ext Controller.
Any help would be great.
Nick
If You want to make both fields mandatory You can simply do If You want to make either field1 or field 2 mandatory You have to touch the controller.
In controller u need to check
Hope it solves Your Problem.
Thanx
Tarun Suri