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
Shuhbam SinhaShuhbam 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>
Best Answer chosen by Shuhbam Sinha
VinayVinay (Salesforce Developers) 
Hi Shuhbam,

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,