function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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/