Form Builder Example CMS
This is an example repo for a CMS built with Payload. This repo showcases how to utilize Payload's Form Builder Plugin.
Getting Started
- Clone this repo
cdinto the directory and runyarnornpm install- Copy (
cp) the.env.examplefile to an.envfile - Run
yarn devornpm run devto start the development server - Visit
http://localhost:8000/adminto access the admin panel - Login with the following credentials:
- Email:
dev@payloadcms.com - Password:
test
- Email:
Frontend Development
There is a fully working Next.js app tailored specifically for this example which can be found here. Follow the instructions there to get started. You can use this repo as a backend for the frontend and see for yourself how it all works together.
Usage
Once booted up, a Basic Form will be immediately available to view on the home page along with a few other forms on their corresponding pages.
- These forms are seeded into the
formscollection. - A few pages have also been seeded in on start up and utilize a layout building block called
Form Blockthat is wired up to use the different forms from theformscollection. - This is done by adding a
relationshipfield in the form-block config and setting itsrelationTofield to theformscollection.