Building user facing forms
Hi
I would like to build some user facing forms using the form builder from filament.but... it looks like the doc's is not 100% updated.
I have also looked at this - I did not install locally
https://github.com/danharrin/form-builder
vite config part is not up to date
will throw an error:
ERROR: Unexpected "..."
also. adding
import FormsAlpinePlugin from '../../vendor/filament/forms/dist/module.esm'
import NotificationsAlpinePlugin from '../../vendor/filament/notifications/dist/module.esm'
Alpine.plugin(FormsAlpinePlugin)
Alpine.plugin(NotificationsAlpinePlugin)
to the global js is tripling the size of my JS to load, so it would be nice to simply load the filament part only on pages that uses the forms
so... what is the best way to get started with using form builder for user facing forms ?
GitHub
GitHub - danharrin/form-builder: A demo of how to use filament/form...
A demo of how to use filament/forms to build a user-facing Form Builder which stores fields in JSON. - GitHub - danharrin/form-builder: A demo of how to use filament/forms to build a user-facing Fo...
4 Replies
Can you link the part of the docs, that is not up to date? Seems like your Vite config is just missing the array
[]
around it.
it would be nice to simply load the filament part only on pages that uses the formsMake a separate JS file that you include on that files.
danharrin/form-builder is not the filament form builder
it is an example project that uses the form builder to create an UI for building forms like Google Forms
the docs are 100% up to date on https://filamentphp.com/docs/forms
Filament
Installation - Form Builder - Filament
The elegant TALL stack form builder for Laravel artisans.
yes, my bad.... after reading a few times I figured it out - sorry