Hi, I need help to add record from landing page form submission to Grist table using PHP. Is there any sample code I can refer to achieve this?
Thank you
Hi, I need help to add record from landing page form submission to Grist table using PHP. Is there any sample code I can refer to achieve this?
Thank you
There’s an example of reading data here:
Adding a record would be the same endpoint, but a POST instead of a GET (documentation). I don’t know enough PHP to suggest the exact changes needed.
By the way, there’s a specification of our api here, which could perhaps be used to generate a PHP client using tools such as swagger-codegen.
Great, thanks for the info. Appreciate
This new repo offers another way to record form submissions into Grist: GitHub - gristlabs/grist-form-submit: Turn form submissions on webpages into new records in Grist documents. It doesn’t require PHP, and is good if you just need to collect data from a landing page form.