Hi Team,
I’m building an application in the ticket details page modal and trying to populate some dropdown fields from which I get the options from the API.
But the options parameter is not working and appending the options to the select. I’m using crayons v4 and trying to render in a modal in ticket details page
Modal.html
<fw-select id="billings" placeholder="Select your option" label="Verrechnung" required="true"></fw-select>
Modal.js
let billings = parsedResponse?.data?.map((obj) => ({ value: obj?._id, text: obj?.normal }));
var populateBilling = document.getElementById("billings");
populateBilling.options = billings;
Is there something I’m missing in this? Thanks in advance