Drupal 8 Programatically created custom form.

preview_player
Показать описание
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):

Support Drupal Up on Patreon and learn more stuff there:

The full code of the module you could find here:
Рекомендации по теме
Комментарии
Автор

Very nice and simple tutorial, best for beginners. Rather than confusing beginner developer with lot of code and terminology you have simply explained everything with minimal code possible. After this we can easily create complex forms and add our logic to submit function.

psk
Автор

Gives me a better understanding of how Drupal works.
I will definitely be checking out your Udemy course!
Thank you for this very helpful tutorial.

skyyfiman
Автор

This is exactly what I was looking for. Thank you!

sorenbaird
Автор

Extremely Great Video, give a thorough understanding! Thank You.

hamadkhan
Автор

Thank you,
you always have a great tutorial, and it's easy to learn

jasramihajarivelo
Автор

Nice Tutorial for form creation in D8. Thanks!

Rahulpandey-jnxb
Автор

This is a great tutorial, i appreciate very much your work, thank you so much.

meck
Автор

great tutorial! would love to see more of these

elvinxhimitiku
Автор

It gave page not found what should I do?

flashies
Автор

drupal_set_message doesn't work in 9.2.x
message.')); can be used

SoundPeaks
Автор

Hi Nikolay, your videos are simple and clear.
One question, is it possible to calculate between the two numbers not while saving but while typing?
Example we add another field called sum. When I type 10 in number_1 I add the value of number_1 and number_2 in sum.
Then if you want you can submit it. In this way you have the result of the work before submitting.
Thank you

gaetanoleoni
Автор

well this is very clear.. but how are you doing this out of the top of your head?

sander
Автор

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 :(

DevLatBo
Автор

Great tutorial. I'm going to create a custom form and assign it into a custom block. I then assign the custom block into a region. Anonymous users can see the form however admin or authenticate users are unable to view the form. What is the reason?

niluad
Автор

I need help in creating widget for a custom module for my intern. I would be very thankful of you if you could help me.

talhayaseen
Автор

Please make vedio on how we create and dispaly two form in one page

gauravsinghnegi
Автор

is there a file in #type? just wondering :)

jadetaboada
Автор

as of today, book code, drupal site example, other blog example module not worked for me. But this procedure worked nicely. I curse Drupal

anuraggupta
visit shbcf.ru