I am creating a Custom Element to display and print text. How do I pass database data to my the Custom Element?

Is there a secret to how to get any responses to questions on this forum?

Same problem, has this ever been solved?

The answer is to use JSON to parse the database data and send it back and forth.

How? I have an array of items from my dataset (collection) I need in my custom element. I’m new to using wix, could you show an example please?

See the Dropdown Custom Element example which uses the results of a database query to populate a custom dropdown element.

Ok, the live demo works but when i go to edit the example the preview does not work because it has an async / await function in the custom element.

Also once i chose an option in the drop down how do I get the value in my page file

//Edit
I have got the dropdown working in preview now. I just need to be able to access the chosen value of the dropdown in the main page file so i can write it to my database