You need to sign in to do that
Don't have an account?

How to make an input field required dynamically..
hi all,
I have a check box and below that check bow i've a pageblock section with several input fields.. I need to make those input fields as required fields if i check the above mentioned check box..
How can i do that??
Thanks a lot
Really appreicaite you responds..
I have a check box and below that check bow i've a pageblock section with several input fields.. I need to make those input fields as required fields if i check the above mentioned check box..
How can i do that??
Thanks a lot
Really appreicaite you responds..
Please refer to links below that will guide you on how to make input field required dynamically:
1.https://success.salesforce.com/ideaView?id=08730000000GyzBAAS
2.https://developer.salesforce.com/forums/ForumsMain?id=906F00000008y1ZIAQ
3.http://salesforce.stackexchange.com/questions/22213/how-can-i-dynamically-render-required-fields-using-a-dynamic-component
4.http://salesforce.stackexchange.com/questions/21741/how-can-i-build-a-complex-visualforce-dynamic-binding-dynamically
5.http://www.infallibletechie.com/2012/10/dynamically-making-field-required-using.html
6.http://www.infallibletechie.com/2012/10/dynamically-making-field-read-only.html
7.http://stackoverflow.com/questions/19834815/creat-dynamic-form-in-visualforce
I hope this helps.
Just try with "required" attribute in inputfield like <apex:inputfield required={! if(checkbox =0 , true ,false)} this exaple you have made some changes depends on your requirement.
regards,
Sankar