+ Start a Discussion
SARANG DESHPANDESARANG DESHPANDE 

Using OnChange attribute to cahnge typa of custom field as Required

I want to change the type of a  lookup field from non-required to required depending on value in a picklist of same object(i.e using onChange attribute in visualforce) . Can somebody give me idea how to achieve this?
sandeep@Salesforcesandeep@Salesforce
There is attribute required which can be configured or controlled based on event here event is "Onchange". so you can mantain a flag inside the controller and based on onchange event toggel the flag and rerender the section which is containing lookup field . 

Thanks
Sandeep Singhal
http://www.codespokes.com/