+ Start a Discussion
Shubham KhajjepawarShubham Khajjepawar 

how to set readonly picklist filed in lighting component

In my lighting page on the picklist filed is there. I want to set read-only that filed using a lighting component.
You can simply set the readonly attribute to true:
<lightning:select name="selectItem" label="Select an item" readonly="true" onchange="{!c.doSomething}">
        <option value="">choose one...</option>
        <option value="1">one</option>
        <option value="2">two</option>

If this answer helps you, please mark it as accepted.

Tushar Sharma
firdoss mohd 1firdoss mohd 1
Hi Shubham,

It looks like our team of experts can help you resolve this ticket. We have Salesforce global help-desk support and you can log a case and our Customer Success Agents will help you solve this issue. You can also speak to them on live chat. Click on the below link to contact our help-desk. Trust me it is a support service that we are offering for free!


Jarvis SFDC team