Posts

Showing posts with the label value

Salesforce Fact #714 | Error while deactivating picklist value

Have you encountered this error while deactivating a picklist value 'The picklist value you attempted to delete is the last value for the following record types'. In order to avoid the error, we need to go to the particular record type and the picklist field, then move the value from the 'Selected Values' section to 'Available Values' section and ensure there is at least one other value is selected. Now, we are good to deactivate the picklist value. Reference:  https://help.salesforce.com/s/articleView?id=000386677&type=1

Salesforce Fact #705 | Disabling few picklist values in LWC

Image
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.

Salesforce Fact #653 | Reset value in combobox

Image
Suppose we have a scenario in LWC where we need to reset the value of the combobox on button click. We can achieve this using template.querySelector(). Attached are the screenshots.