A bit of guidance needed - Datastore to server action

Please please oh pretty please can someone explain how to do this?
@Teodor?
@patrick?
@Dave if you have a moment to spare?

Antony, itā€™s the same method we discussed on your other thread, you need to bind the name of the datastore field with the [{{index}}] to a form input within a repeat.

You can hide the repeat/input if you donā€™t want it visible to your user.

Give me a few minutes and I will publish an example.

2 Likes

Hopefully this will make sense:

It was rushed so may need to be polished a bit.

Hi Antony, its pretty much as I have outlined above mate. Took some working out but in the end is quite simple, literally as above. Could quite easily over complicate it if I were to write a guide as I tend to waffleā€¦ :slight_smile:

Thanks @dave!

No worries, as @max_gb wrote the guide from heavenā€¦ see the link in the post above!

A new ā€œForm Dataā€ component was added to the latest Wappler version and it makes sending complex data structures to the server side really easy:

1 Like

Thanks, Teodor! This makes using the data store a tool I can use more often, reducing actions needed to get this data to the server action.

Thanks again,
Ray

1 Like