You need to sign in to do that
Don't have an account?
kiransure kumar
FIELD UPDATIONS
HI I HAVE TWO CHECK BOXES LIKE FATHER AND HUSBAND .IF I SELECT FATHER CHECK BOX THEN USER SHOULD ENTER FATHER NAME AND I WANT TO DISABLE THAT HUSBAND TEXT FIELD WHILE ENTERING IN FATHER TEXT FIELD .AND SAME IF I SELECT HUSBAND CHECK BOX CORESPONDING HUSBAND TEXT FIELD WILL ENBLE TO ENTER DATA AND WANT MAKE FATHER NAME TEXT FIELD DISABLE .HOW ? CAN ANY ONE HELP ME ?
In this case better if you will write two validation .
One is for Husband chk box and related Husbannd Text field Another for father check box with related Father field .
You need validation vice versa like if chk box is checked then text field is mandatory and on reverse if you want to add value to check box then also chk box should clicked .
So better you should write two validation which will help you to display two error message .
Whay validation bcoz your scenario is not possible in standrad page lay out how ever it is possible in custom VF page .
Any issue let us know .
Thnaks
manoj
All Answers
You can write a validation rule for this:
OR ( AND( fathercheckbox=true , NOT ( ISBLANK(husbandtext) ) , AND( husbandcheckbox=true , NOT ( ISBLANK(fathertext) ) ) )
Thanks,
Pratik
In this case better if you will write two validation .
One is for Husband chk box and related Husbannd Text field Another for father check box with related Father field .
You need validation vice versa like if chk box is checked then text field is mandatory and on reverse if you want to add value to check box then also chk box should clicked .
So better you should write two validation which will help you to display two error message .
Whay validation bcoz your scenario is not possible in standrad page lay out how ever it is possible in custom VF page .
Any issue let us know .
Thnaks
manoj