Drupal 8 Programatically created custom form.

Drupal tutorials webdesign videos
Lightning fast hosting for a shockingly low price! 50% off GoDaddy Hosting plans

In this video, we are going to create a simple module with a form in it.
We will explain the basic structure that a Drupal 8 basic form should have. In our example, the form would be having two fields and a submit button and after clicking on submit it will simply sum the two fields. We will also create a simple route in order to be able to show the form on its own page.

If you liked this video, please also have a look at my new corse about Drupal 8 module development here (with 50% discount):

The full code of the module you could find here:


7 thoughts on “Drupal 8 Programatically created custom form.”

  1. HI Drupal Up I need your help… do you have any example about how to pass varialbes when you create a block in order to show more content in that block custom… i've been trying hard and i didnt have success about it… please help 🙁

Leave a Reply

Your email address will not be published. Required fields are marked *