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

ben.hamelin’s picture

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

allan00958’s picture

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

allan00958’s picture

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'