OK, bit naughty (sorry) adding this as a wishlist, but here we go.
I've struggled to find a suitable simple form app.
Everything is a darned obese elephant doing a job which a mouse can do.
And the mouse does a better (as in more functional) job !
(Yep, looking at you Nextcloud, formio, ohmyform, lime-survey etc. etc.)
So I built one "to scratch my itch".
And it only seems fair to share it in case it helps others.
https://git.cloudron.io/timconsidine/custom-form-cloudron
Configurable Form storing to Directus
This is a simple web app running in NodeJS to display a form and write the responses to a Directus collection
.
By "simple", I mean it is NOT a full-blown forms solution, and is not meant to be. This gets the job done simply, easily, without installing an elephant to pull what a single mouse can do by itself.
The primary page displays the form with fields you set in config.json
.
A second page allows the viewing of responses as a web page, which can be printed using standard browser functionality to paper or PDF.
Data is in Directus ready for use in another app if needed.
A key feature of the app is that the primary app and form elements can be set in the app's .env
file.
- DIRECTUS_TOKEN
- DIRECTUS_COLLECTION_URL
- YOUR OWN FORM FIELDS !!
- VIEW_PAGE_USERNAME
- VIEW_PAGE_PASSWORD
- PAGE_TITLE
- HEADER_TITLE
- SUBHEADER_1
- SUBHEADER_2
- FOOTER_BACKGROUND_COLOR
- FOOTER_TEXT_COLOR
- YOUR LOGO (upload to /app/data/public)
Just edit /app/data/.env
AND RESTART THE APP.
The form is deliberately not highly styled.
Minimalist and functional, not whizz-bang.
Want whizz-bang ? Go for it - edit index.html
.
The view page is password-protected - change the values in /app/data.env
.
The view page is also very plain design, so that it can easily be printed to paper or PDF.
This is the form page.
ToDo :
- add support for additional form field types (date, checkbox etc.)
[I only needed text and select initially]