Add additional field


I am new to AppGyver and would like to know how I can create a product ordering form with a Plus button on the end to add another row to allow another item/product to be ordered.

Thank you

If you just want to have a list of products that are then sent as a whole to the backend, you can just have an app variable like appVars.shoppingCart that’s an array of objects that describe a product.

Then, you would add input fields that are bound to a pageVars.newProduct object that also matches the product schema.

Finally, the plus button at the end simply adds the new product to the array by setting the shoppingCart app variable to the formula

WITH_ITEM(appVars.shoppingCart, pageVars.newProduct)

I hope this helps!

Thank you. I will try and let you know If I come right

1 Like