link: https://fountainweb.wixsite.com/command
i have created a form which works fine on its own when I am in preview, and posts the data entered into the database, however, when I publish I get a timeout error even when i go to the form link -nav bar item ‘orders’. Is there anything I need to be doing differently to get this live - I am syncing the database. i plan to demo this site for a potential client which will also include an image upload link but first i want to make sure the form works. See image. thanks
Hi Bill,
When I enter the page I see that I don’t have the permissions to read from the “Work_Orders” collection.
Is the collection set to be read by anonymous users?
Hi Bill,
It seems that the page you have created is a Dynamic Page.
A Dynamic Page has a Dataset on it, that is used to fetch the relevant data from the database collection (in your case it’s the work_orders collection), and bind that data to UI components that display it.
So in essence, a dynamic page’s dataset is used primarily to display data on the page, not to collect user input.
The way to create a page that gathers user input, is to create a standard (non-dynamic) page in the site, and place your form elements there. Then, add a dataset that is connected to the work-orders collection, and bind the UI components to it.
Make sure that the work_orders collection permissions are set to the “Form Input” preset so that anyone can post data to that collection.
Hope this helps!
You also may want to review this how-to video:
https://www.wix.com/code/home/tutorials-custom-form
Thank you! I will try that out
This tutorial was very helpful thanks! For some reason in the developer tools area I am not able to switch to live view from sandbox (I am able to view in the dashboard however). Also I am not sure if the upload file button has been implemented yet as far as I know