Dynamic dropdown menu from ajax request

So, I am trying to create a dynamic dropdown box from the ajax request received inside oneditprepare.
I am trying to get an id and all its operations into the dropdown box dynamically.

                    url:url_base + '/list-services',
                    success: function (params) {
                        let json =params.data

The data I am getting back is in JSON format.

Example of how I am creating dynamic dropdown box
const newOp = (<option>${gg}</option>)

I do this in some of my nodes. Here is an example, first the html part:

and here is the corresponding part in the js file:

hope this helps, Johannes

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.