Antony  
              
                  
                    September 29, 2020,  2:40pm
                   
                  21 
               
             
            
              Please please oh pretty please can someone explain how to do this?@Teodor ?@patrick ?@Dave  if you have a moment to spare?
             
            
              
           
          
            
              
                max_gb  
              
                  
                    September 29, 2020,  4:15pm
                   
                  22 
               
             
            
              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 
            
           
          
            
              
                max_gb  
              
                  
                    September 29, 2020,  4:42pm
                   
                  23 
               
             
            
              Hopefully this will make sense:
  
  
    Perquisites: 
App Connect Data Store component added, ID has been set to: responses
Set the Data Store Schema, added 1 variable called: attendee_id
For the purposes of the demo, I have setup a flow to insert two records to the data store on page load, my code for this is: (This will be replaced with your own method for your app)
<body is="dmx-app" id="test" dmx-on:load="run([{run:{action:`responses.insert({attendee_id: 2})`}},{run:{action:`responses.insert({attendee_id: 3})`}}])">
 
Form 
A fā¦
   
 
It was rushed so may need to be polished a bit.
             
            
              
           
          
            
              
                Dave  
              
                  
                    September 30, 2020, 11:02am
                   
                  24 
               
             
            
              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⦠ 
             
            
              
           
          
            
              
                Antony  
              
                  
                    September 30, 2020,  8:52pm
                   
                  25 
               
             
            
              Thanks @dave !
No worries, as @max_gb  wrote the guide from heaven⦠see the link in the post above!
             
            
              
           
          
            
              
                Teodor  
              
                  
                    April 4, 2024,  4:28pm
                   
                  29 
               
             
            
              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:
  
  
    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ā¦
   
 
             
            
              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,
             
            
              1 Like