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
tomasddtomasdd 

Lightning component for update values based on select list

Hi All, 

I would like to create a lightning component for update field based on selected value from "select list" in lwc.

I need this component in "force:lightningQuickAction" - so when user open a example ticket and click the button XYZ component will show (it's alraedy done) and select status - click save then the selected status should be change of current ticket record.

 

This is my current code:

<aura:component implements="force:lightningQuickAction" >
    <lightning:select aura:id = "statusSelect" name="statusChoose" label="Setup new status" required="true" onchange="{! c.onChange }">
        <option value="working">Working</option>
        <option value="escalated">Escalated</option>
        <option value="done">Done</option>
    </lightning:select>
    <button class="slds-button slds-button--neutral uiButton--default uiButton--brand uiButton" type="button">
    <lightning:button variant="brand" label="Save" onclick="{! c.saveClick }" />
    </button>
</aura:component>