The tag can refer to the contact form, a form that allows to contact other users, or specific site roles (e.g. the site maintainers); the Contact module, a Drupal core module that implement a contact form.

learn more… | top users | synonyms

0
votes
1answer
22 views

How can add Contact-Us-form in custom place of page.html.twig file? [duplicate]

I need to add contact-us form in the custom place of page.html.twig file in my themplate, I want to add some code like belove: <div class="Contact-Us"> <p>Contact Us</p> ...
0
votes
1answer
52 views
+100

Send email to different email depending on taxonomy term

This was fairly simple to do in D7 and is a common request. How would I send an email to a different email address depending on a taxonomy term chosen from a dropdown box on the contact form?
1
vote
2answers
59 views

How do I split a contact form into multiple pages?

I have a huge form that's way too large for a single page. I would like to split this form up into a few separate pages. What are my options? Edit: Still haven't figured out how to do this with ...
0
votes
1answer
27 views

How do I attach a library to contact forms?

Simple question, I just need to know how to attach a library to Drupal 8's contact forms. I recently made a similar post for attaching a library to a view, that was accomplished by adding {{ ...
0
votes
1answer
39 views

Emails are not sent to outside domains

I deployed a Drupal 8 website, on a hosting service with cPanel, with domain mydomain.com. If I set this email address on the user profile: john.smith@example.com, that is an email address with a ...
0
votes
0answers
26 views

Contact form: recipient from node's Email field

Use case: Business Directory. Description: I need to create a dynamic contact form that will use each node's (business listing content type) individual Email field as the contact form's main ...
0
votes
2answers
49 views

I want to override the template of the contact page

I use bootstrap as theme in Drupal 8, and I created a sub-theme. I want to override the contact page with a custom template. I added debug: true in services.yml, but I didn't find the right template ...
0
votes
1answer
73 views

Formatting email sent with Contact form [duplicate]

I created a custom form (adding some additional fields) using the Contact module from the core of Drupal 8. When I submit the form is sent an email containing all values, but it is really bad ...
0
votes
1answer
40 views

How to wrap a contact form with another block? [duplicate]

Is there a method to wrap a contact form with another block and make them together a new block or something? I want to put some information next to the contact form and put them together in a ...
3
votes
1answer
88 views

Adding check boxes to contact form

I am attempting to make a contact form in Drupal 8 using "Contact forms" included in core. I'm struggling to figure out how to really customize it, like adding radio buttons or check boxes - does ...
1
vote
3answers
153 views

How to place Contact form in block?

I have to embed a contact form inside of a block, and I'm trying to use the entity.form_builder service, But I'm not sure which entity I should give it, I found Message and ContactForm entity, so what ...
0
votes
1answer
89 views

Contact for per node in Drupal 8?

This was quite easy on Drupal 7. You could just use Webform. In Drupal 8, I'm not so sure. I have nodes of type "Business". I want a form to appear on this page, that when filled in, it must send an ...
2
votes
0answers
85 views

Contact form email template

Currently, the whole email generated by the Contact module is without a single line break. They look very ugly. Is there a way to edit the email template for specific contact forms?
0
votes
1answer
50 views

Get list of custom fields and update their settings programatically

I'm using D8's core contact form, I have added some custom fields and I want to change one of custom fields' settings config programatically. I have tried this ...
0
votes
4answers
28 views

Pass NID to contact form

I have a website with a lot of furniture products. Each node page has a link to "ask for more info" that opens the sitewide contact form. When I receive the e-mail message, I need to know to which ...
2
votes
3answers
160 views

How can I theme the outgoing contact mail?

I want to theme the outgoing mail from the contact module, because the standard output looks horrible. Where can I do this? It's the one starting with admin (http://example.com/user/1) sent a message ...
1
vote
1answer
29 views

Change contact setting flood limit

I want to change the contact setting flood limit, but I don't find the correct place. How I change the flood limit for sent messages?
0
votes
2answers
36 views

Access submitted form data in custom callback before hook_mail_alter()

I wan't to alter contact form recipient according to what user chose in one of the dropdown fields of my Contact form. I implemented hook_form_FORM_ID_alter() in order to add custom submit callback ...
2
votes
3answers
510 views

Redirect contact form on submit

Using Drupal 8 and trying to get the contact form to redirect to the same page after submitting. By default it seem to redirect to the home page. I have edited my themename.theme file function ...
1
vote
0answers
40 views

How do I add a submission handler to the contact form?

I am trying to get a value from the query string and process it with contact form values to send in email. For example, I have a contact form with different fields. I want to load one node ...
0
votes
0answers
16 views

Token for default contactform subject

Is there a way to automatically fill in a subject in a personal contactform when clicking on a mail button in a view table. The privatemsg module can do that with tokens, that is exactly what I want, ...
0
votes
1answer
111 views

How to set or change path to Drupal 8 contact form?

Drupal 8 provides two default contact forms: "Personal contact form" and "Website feedback." While "Personal contact form" is added to each user's profile by default, to "Website feedback" Drupal ...
1
vote
2answers
126 views

Rendering contact_form

I have call my current contactform with this function in mytheme.theme. $form = Drupal::routeMatch()->getParameter('contact_form'); I have this object(Drupal\contact\Entity\ContactForm)#412 ...
0
votes
1answer
96 views

Contact form - Custom fields are not sending content

I've done a custom contact form with 2 more fields, but I can't get values of those 2 custom fields. I modified contact.module in core to see what are coming from form submit, found my custom fields ...
1
vote
2answers
174 views

Adding a contact form to a page in Drupal 8

I have created a contact form to be used for leads in certain content types, but I am unable to display the form within the content type, either through a block or entity reference. I have attempted ...
2
votes
1answer
227 views

Embed a contact form

Is it possible to take a contact form and embed it into a page.html.twig or node.html.twig file? Or is the form only accessible via its contact/machine_name link?
0
votes
2answers
149 views

Translating contact forms

Is there a way to fully translate the contact message forms in Drupal 8? In the content language screen, the contact message bundle is marked as translation is not supported. Edit: To clarify, I ...
1
vote
1answer
211 views

D8 render a contact form from theme preprocess

I want to render a form in a node view. I made an entity reference to a contact form, then in the preprocess_node I'm trying to get the render array of the contact form. function ...
0
votes
1answer
48 views

How to add tokens in an text-area in the contact module?

In contact module there is an text-area of auto reply in which I want to add tokens to it. Could anyone give solution for above issue.
3
votes
2answers
97 views

Recommended approach for setting up contact management?

I need to develop a contact form that the administrator can reply to and categorize each message (Responded, Transferred, Archived, etc.) received from users. Which would be the best approach for ...
0
votes
0answers
51 views

Contact Form not sending confirmation email

I'm stuck with this. Hope someone can help. I'm working in a Drupal 7 web, using the "Contact forms module". The emails are sent, but there are couple of weird things. If the user is admin, there is ...
1
vote
1answer
91 views

Contact form on maintenance mode page

I'm using Drupal 7 and I wanted users to be able to contact me via email whilst I'm still working on the website. So my plan was to use 'create a contact form', as I don't want to expose my email ...
1
vote
2answers
29 views

Contact form module for different users

I am looking for a contact form module for different users logged in to the website. E.g., 1) a website that has different authors 2) the user clicks on the author's page there is a contact form ...
1
vote
2answers
104 views

How to put conditional multiple recipients in drupal 7 default contact us form

I am working on a multilingual Drupal 7 site using a single contact us form. It has 4 languages. The contact us form is multilingual i.e labels of form fields changes, depending on the language you ...
2
votes
2answers
358 views

Anonymous users can't use personal contact forms

I'm using the core Contact module, with personal contact forms on profile pages. I set both the permissions "Visit user profile" and "Use users' personal contact pages" for anonymous users, but I ...
1
vote
0answers
69 views

drupal chat with trusted contact only drupal commons

I am integrating the Drupal chat with Drupal commons module . Now its working .but my actual need is to integrate this with only for trusted contacts is it possible . If yes means how I need to ...
1
vote
1answer
146 views

create contact form block with prepopulated entity references and send email to content author

I am trying to create 3 forms, 2 of them should be made into blocks to show on specific content types. One for anon users and another for logged in users. The other is just a site wide contact form ...
0
votes
1answer
44 views

Custom personal contact form with webforms

We want our users to be able to contact each other directly, but not give away the email address of the user account. Personal Contact forms do just this, however, we need a few more fields and ...
4
votes
1answer
1k views

Drupal 8 Theme a contact form

Hi i'd like to theme a contact form in Drupal 8. I'd like to put divs around form elements (using bootstrap). I also want to put some classes on certain elements (submit button, the form itself). ...
1
vote
1answer
56 views

How to set form action to default contact form action

I'm editing a Drupal site, it has a hardcodeded contact form which I would like to have the same behaviour than the default contact form (applying filters, inserting info in the database and sending ...
0
votes
1answer
87 views

Want to rename contact form fields name [duplicate]

I am using drupal 7 contact form in my site and I want to rename some field names, like "Subject" to "Emne" etc..
0
votes
1answer
48 views

Add Fields In Inbuild Contact Form In Drupal [closed]

i Have Put A Drupal Contact Form In Contact Us Page So I Want To Add A Contact No Field In Site Contact Form You Can See In Given Images kindly help it out
0
votes
1answer
31 views

Removing posted by admin date from a contact form

I am making a contact form in Drupal with using panels but in contact form it is showing posted by admin date. I want to remove these two things as shown in image.
0
votes
1answer
20 views

Simple feedback contact form is shown only in administrator mode

Simple feedback contact form is shown only in administrator mode. How to set it up to make it visible on all pages of my Drupal 7 website? Thank you.
1
vote
1answer
347 views

How to send HTML/Rich text email from /contact

I want to allow other text formats on the /contact form than just plain text. I haven't been able to find a module that does this. Is it possible to do this in D7?
0
votes
0answers
95 views

Drupal view filter between two dates on published date

I have a problem with view and filter on published date. In the view i display all my contacts with their published date. It's the published date of the contact not a field date in entity contact. ...
0
votes
1answer
19 views

Personal Contact Form granular permissions

I want to be able to set specific permissions by role for the use of the Personal Contact Form. Searching drupal.org shows a few modules to work with Contact forms, but none do what I am looking to ...
0
votes
2answers
444 views

Show contact form in block only, not page?

I'm using the Contact and Contact Form Blocks modules to create a contact form and display it in a block. The problem is that the Contact module creates a page but I don't want a page, only the ...
6
votes
1answer
802 views

How to programmatically render a contact form in a theme in D8

How to get the side-wide contact form (feedback) individually displayed in a custom block or other page then /contact (e.g. frontpage)? I've tried this code, but it is not working (are contact forms ...
0
votes
0answers
54 views

Flexi access : create a view of content allowed

I'm using Flexi Access in my project to allowed some users to see nodes with the ACL. But can we use Views with flexi access to create a view who regroup all nodes allowed to this user ? If we ...