Salesforce Fact #705 | Disabling few picklist values in LWC

Suppose we need to make some of the picklist values as disabled in LWC. Now, the individual options of lightning-combobox doesn't support any disabled attribute.

So, we can implement the same using slds and iteration logic. In this example, we have 3 options and option2 is disabled.

Attached are the screenshots.





Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow