bpj
April 9, 2025, 7:56pm
1
When sending a form, such as a shopping cart, it might sometimes be useful to send a JSON in the POST data with a form rather than having to create the structure using repeats and hidden inputs
Teodor
April 10, 2025, 6:06am
2
Have you checked the Form Data component, is that maybe what you're looking for?
Intro
Often you need to send complex data structures with form submissions, for example sending your shopping cart data to the server side. The Form Data component makes it easy to send such data to your server actions.
Page Setup
In our example we will show you how to send the contents of the Data Store component to a server action.
We have a really simple shopping cart page, where you can add products to a data store and you can submit an order via a Server Connect Form. We want to send th…
bpj
April 10, 2025, 6:18am
3
I’ve never noticed that component. Thanks @Teodor