Stop creating Drupal Forms! Just describe a schema - the form will appear automatically!
Stop creating Drupal Forms! Just describe a schema - the form will appear automatically!
Oh, that Drupal Forms... Too much code just to create a simple form with a couple of fields!
What if I tell you that those times are in the past?
Now, just describing the form data in the YAML declarative format is enough! The rest will be done automatically, without any line of code: the form fields design, validation, submission, saving to the database, and all other boring stuff - everything works out of the box!
Using this declarative approach, you can create any type of form automatically:
- End-user forms, like a feedback form or a comment form.
- Custom settings pages with automatic saving to the configuration.
- Entity Forms with all base fields editable in the form.
And if you want to customize some fields or the submission flow, you're still able to do this by code. But just with a couple of code lines, without tons of boilerplate.
Come to learn how to make forms without pain, and forget those times of writing a lot of code lines.