There are two ways to add a contact form to Drupal. They are as follows:
- Add a link to the contact form
- Open yuour Drupal account
- Navigate to admin
- Click on structure
- Click on menus
- Press on ‘list links’ next to ‘main menu’
- Hit ‘add link’
- Name the form link in the ‘Menu link’ title text box
- Input the 'contact' in the ‘Path’ text box
- Adjust the settings as per your requirements
- Hit Save
- Create a custom block type for the contact form
- Open your Drupal account
- Navigate to Structure
- Click on Block layout
- Press on the ‘Custom block library’ option
- Hit ‘Block types’
- Include a field for the type of entity reference 'Other...' and set it to the contact form type.
- Set up Contact Storage and turn it on.
- For the entity reference field on the contact form, choose Rendered entity format.
- Hide the field label