You need to sign in to do that
Don't have an account?
![Rahul456 Rahul456](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
How to set a input field required in my Page Editor based on some condition
Hi,
I have two input fields in my VF page:
1)1st input field is a Picklist(Which has values like:Text,Pick List,Multi-PickList,Radio Button)
2)2nd one is Text Area.
So User Selects either of Pick List,Multi-PickList,Radio Button values in 1st input field then Text Area is a Required Field.
If User Selects Text Value in 1st input field then Text Area is not a Required field.
Please suggest me how to fix this issue.
Raj
It's not as hard as it seems to be. All you need is to check the value in your controller and properly view messages to your user.
click below there is very good example to address this issue:
http://salesforcesource.blogspot.com/2008/09/how-do-custom-validations-in-visual.html