I've spent several days scouring the web and forums for a method to do one simple task - embed a personal contact form (or webform) onto the actual user's page instead of making visitors click a separate link to another page.
This is the one method I've tried that actually works, so I thought I'd make a post to hopefully make other's lives simpler/easier/harder/faster/better/stronger as well.
Some other articles I read that did not result in a success for various reasons:
- Drupal 8 Webform Module: How to Add a Webform to a Content Type
- How to make a user contact form part of a field group
- How do I Embed a Form In a Page in Drupal 8?
- Drupal 8 : Inject a contact form inside a content type in 5 steps - comments discuss using (unable to use) for personal contact forms
- Updated >= Drupal 8.0.5+: Rendering forms/entities programmatically on theming level
The only issues I have with this solution are that it requires 4 modules to work - Webform, Extra Field Settings Provider, Extra Field, and Webform Extra Field. Supposedly this should be much simpler by using an alter hook to embed the existing personal contact form, but I wasn't able to get a custom hook solution to work.
Comments
Comment #2
tunic