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
0answers
8 views

I want Change comportement of sending mail of page contact in drupal 8

I have a page contact www.example.Com/contact I added an entity reference taxonomy contact_taxo(which contain field email) in entity contact . So , when we fill the blanks of the contact form ( we ...
0
votes
1answer
35 views

Formatting email sent with Contact form

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
38 views

How to wrap a contact form with another block?

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
55 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
130 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
56 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 ...
0
votes
0answers
61 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
41 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
27 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 ...
1
vote
3answers
85 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 ...
0
votes
1answer
25 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
32 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
2answers
312 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 ...
0
votes
0answers
39 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
15 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
83 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 ...
0
votes
2answers
106 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
80 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
106 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
170 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
107 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
161 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
39 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
85 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
48 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
89 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
28 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
102 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
338 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
66 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
139 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
43 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
55 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
85 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
47 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
30 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
331 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
94 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
422 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 ...
5
votes
1answer
705 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
52 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 ...
3
votes
1answer
26 views

Changing the $from email in D6 contact_mail_user_submit()

// Send the e-mail in the requested user language. drupal_mail('contact', 'user_mail', $to, user_preferred_language($account), $values, $**from**); I wish to change the $from email to ...
0
votes
1answer
577 views

Send contact form results to google drive spreadsheet

Is it possible after form submission (Webform) that the data is immediately sent to spread-sheet in Google drive or some kind of similar application. Simple fields like : date, time, first name, last ...
1
vote
1answer
695 views

How can enable multiple contact form in drupal 8?

I want multiple contact forms(different fields) in my drupal 8 site Like Webform module drupal 7. I have tried to add multiple contact forms and i am able to number of contact forms with different ...
0
votes
1answer
219 views

how to make radio buttons be one under the other on drupal contact form [closed]

by default the radio buttons on my drupal contact form come out next to each other and the title is very far from the actual button. with CSS alone it doesnt work. I seem to need to be able to edit ...
2
votes
2answers
45 views

Do I need to use drupal_mail after the hook_form_contact_site_form_alter?

I have added on field in my site wide contact form through this code : function cstm_form_contact_site_form_alter(&$form, &$form_state, $form_id) { // Add a phone number field to the ...
-3
votes
1answer
60 views

site contact form not working [closed]

My hosted site's contact form is not working. I have checked all the obvious things like: correct site email address. permissions spam box It is working on the local development machine. I ...