Contents
How to disable a multipicklist field in JavaScript?
I want to disable a multipicklist field, depending on other picklist field value. if picklist__c is ‘Inactive’, then disable multipicklist__c. I used javascript but no luck. is not working. still no luck. please provide me any example so that i can implement the same in my vf page.
How to disable a field based on a picklist value?
You’d need to have an onchange handler to submit the page back to the server. The other is to use javascript and leave the fields there but disable/enable based on the selected value from the picklist. Thanks for the Knowldge.
How to disable the jQuery multiselect Stack Overflow?
And by replacing disable with enable you can enable it. So just run the function with the correct disable/enable setting and you can do it based on any condition. should do the trick. Calling $ (“#test001”).multiselect (“disable”); will disabled the multiselect.
How to enable a picklist field in Salesforce?
I am new to salesforce, am getting errors in render, onchange etc. The requirements is to enable a picklist field and make it mandatory based on a checkbox. Once the picklist field is enabled, if the picklist value=Common , I have to enable another field.
When to change the first picklist field values?
So, when ever the values in first picklist field changes, you can update the custom settings with those values so that you no need to change the code every time. If the first picklist field values not gonna change then its always good to go with client side scripting using javascript or JQuery to implement as given above.
How to control second picklist field in JavaScript?
As per the Question the Picklist values you are referring to should control display of second picklist field (multi-select). We can achieve this using javascript, JQuery, ActionFunction, ActionSupport.