I am using Drupal core 10.4.1 with Paragraphs 8.x-1.18 and Layout Paragraphs 2.1.1

When i include a contact form (Drupal Core, not webform). there is only shown a link to the form, not the form itself.
When i click on the form, it the form is shown, but not in the page, where the form is included as a paragraph

Where can i modify this behavior?

Comments

lissy created an issue. See original summary.

alangallery’s picture

Maybe take a look at https://www.drupal.org/project/contact_formatter, that seems to offer ability to render form under manage display for the field.

marekgol’s picture

There are a couple of places where you can check if you have the correct settings:

A.
1. Go to: Structure > Contact forms
2. Go to: Manage display tab of your form and check if the form is configured to be embedded rather than linked.

B.
1. Go to: Structure > Paragraphs types
2. Go to: Manage display tab of your paragraph.
3. Change the format/display mode of the contact form field (try different formatter options, like "Rendered entity" instead of "Link", and check if the contact form field is set to display the form, not just a link).

C.
1. Go to: Structure > Content types
2. Go to: Manage form display tab and look for your paragraph's field settings.
3. Ensure the widget is configured properly for Layout Paragraphs.

D.
If all the settings above seem to be OK, and you are still not able to display the form, you may need to create a custom template for your contact form paragraph type, and use {{ content.field_contact_form }} to render the form directly.

berdir’s picture

Status: Active » Fixed

Drupal core doesn't ship with a view builder for contact forms, contact_storage is one module that provides that. You can also do something on your own in preprocess, but this isn't a responsibility of paragraphs.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.