Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By allan00958 on
Hi!
I am learning Drupal 8 and I am stuck on a problem.
How do I create a form as a block? and thus place it wherever I please?
I know this module:
https://www.drupal.org/project/contact_block
but there isn't even 1 example to demonstrate how to procede.
Thanks :)
Comments
This is the right module.
This is the right module.
Go to "Structure > Block Layout" and click "Place Block" next to whichever region you want the form in.
Then you select the form, and other typical block settings.
You'll want the contact_storage as well for form submission reviews
It doesn't work
I am still missing a step.
I go to Structure>Contact Form>Add New Contact Form
There I create a new contact form. But at what point do I change its format to 'block'? because so far, it doesn't appear in my block librabries. I need a step by step guide :)
Solved it!
I found a way to add a form as a full entity anywhere I please, either in a block or page. So it's possible with the module 'contact storage'