I’m trying to add the following to an array on my page, but instead of the static 34 value, I want to use a dynamic value. lineitems.addUniq({price: 'price_1OG05DLa8bLjnaWJwRG2GROw', quantity: 34})
I read your topic hours ago, had no clue how to solve it, but now an idea popped to mind…
Write the JSON as a string, and in the end use the formatter that decodes it (sorry I don’t remember the exact name, and it’s probably not in the UI, you’ll need to search the forum)
This was user error. I had the update on the wrong input. I’m nesting a number input inside of a radio input and I had the update on the radio input. It needed to be on the number input.
Also, the Wappler UI complains about the syntax, but this does work as long as you add in code editor instead of through Expression editor.