What I’m trying to do is when a button is clicked, create a check box and text inside a text element, or create these objects on the fly
So for example, in the below code
export function button2_click(event) {
var li = ["do you like chocolate", "do you like pizza"]
function_that_creates_checkboxes()
loop through li:
# below function creates check boxes on UI
function_that_creates_checkboxes()
function that sets the text as the current sentence in li
}
So as you can see, when the user clicks on a button, they can now see in the UI sentences(for this example, the one’s inside li), and check boxes that correspond to those sentences.