You need to sign in to do that
Don't have an account?
Shuhbam Sinha
How to assign comma separated value to lightning combobox in lwc
Hello Everyone ,
I am using </lightning-combobox> to show the picklist values but I need to show the values dynamically that means I have one datatable which has a text field called Source and it has values like abc, def, jkl. Now I want to show the comma separated values in my combobox. Can anyone please help me on the same. Thanks in advance
<lightning-combobox
value= ""
label="Source"
options={sourceValues}
onchange={handleChangeNature}
required>
</lightning-combobox>
I am using </lightning-combobox> to show the picklist values but I need to show the values dynamically that means I have one datatable which has a text field called Source and it has values like abc, def, jkl. Now I want to show the comma separated values in my combobox. Can anyone please help me on the same. Thanks in advance
<lightning-combobox
value= ""
label="Source"
options={sourceValues}
onchange={handleChangeNature}
required>
</lightning-combobox>
Check similar issue below for converting comma separated value to lightning combobox.
https://salesforce.stackexchange.com/questions/372599/how-to-convert-string-with-comma-separated-values-to-lwc-picklist
Please mark as Best Answer if above information was helpful.
Thanks,