0

I am building an edit form which needs to update values on fields based on the inputs when you hit submit. The form updates the fields successfully for any lightning-input-fields, but I need to do it for a picklist as well. I have tried with both a combobox and select and have had no success. The field is of type long text.

There was a similar issue asked here and I have attempted to use the answer given, but it didn't work for me. enter image description here

enter image description here

The onChange successfully updates this.value to the correct values (seen in console.log), but when trying to update the Value__c field to that value, it doesn't work. How can I get it populate to and update the field?

2
  • 1
    What exactly does "it doesn't work" mean? is the this.value console statement in your submit showing the correct value? Commented Nov 27, 2024 at 20:37
  • Yeah, this.value has the correct value, but it doesn't update the value in the actual Value__c field Commented Dec 3, 2024 at 14:26

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question