I've managed to get an e-mail field to display as a contact form instead of an e-mail link in the place where my entry shows up, but what I really want to do is set up a block and have the contact form for the appropriate entry show up in the sidebar of the page. Unfortunately I'm only managing to get the title that I gave the block to show up. I tried to configure everything as shown in the screenshots, but either this isn't something the module does, or I'm missing something. Any help would be greatly appreciated, I'm attaching some screenshots to show how things are set up now.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Pol’s picture

Assigned: Unassigned » Pol
Priority: Normal » Major

Hi ultrabob,

Everything you did seems perfectly fine, but it looks like there's a bug in the module, I just tested.
I will work on it and publish a new version soon.

Pol’s picture

Status: Active » Fixed

Hey Ultrabob,

I checked further and actually, there's no bug.
You have two ways to display the contact form in the block

Here's the first method:

  1. Edit the block views
  2. Change the format to "Unformatted list"
  3. Edit the email field and set formatter to "Contact Form"

Now the second method:

  1. Edit the block views
  2. Change the format to "Views Contact Form"
  3. Edit the email field and set formatter to "Email Plain Text"
  4. Edit the settings of the Views Format and check the mapping.

The problem with your configuration is that you did a melting pot of both settings.

If you set the formatter of the email field as a "Contact Form", there's no need to set the Views format to "Views Contact Form".
Change one or the other and you'll be good to go.

Keep me updated!

ultrabob’s picture

Hi Pol,

The second option didn't work for me, but the first did.

Thank you.

Pol’s picture

ah cool !

But are you sure that the first option is not working ? It might be a bug maybe, could try it again please ?

Thank you very much !

ultrabob’s picture

The first option IS working, it is the second:

* Edit the block views
* Change the format to "Views Contact Form"
* Edit the email field and set formatter to "Email Plain Text"
* Edit the settings of the Views Format and check the mapping.
The problem with your configuration is that you did a melting pot of
both settings.

thst isn't working. If I understood your instructions correctly it still isn't working when I do the steps above

Pol’s picture

This is weird.

Could you tell me if the email field is set to 1 or multiple ? (in the email field configuration)

Thanks!

ultrabob’s picture

To make sure I'm answering the right question for you, please walk me through the steps to get to the page where I can check the answer to your question. The content type field accepts more than one value just in case that was the question.

Pol’s picture

I checked again and there's no bug.

I forgot to tell you that you have to disable a checkbox in the email field settings:

See the screenshot: https://docs.google.com/file/d/0B7ugUjBv1lqHWDlhUGJzUG9tRnc/edit?usp=dri...

I hope it's fine now :)

ultrabob’s picture

Thanks, that did the trick!

Status: Fixed » Closed (fixed)

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

System Lord’s picture

I can get the form to display in my sidebar but it doesn't send an email. It also doesn't show a confirmation that an email was sent. It just redirects to Home page after "send." I tried both methods above. Three things i have a question about. In both methods it seems that you are saying to add field "(author) User: E-mail", but then what is the purpose of the custom email field? This could be where I'm messing up. I create the email field in my user profile and populate it but it doesn't seem that its never called on. Second, when creating the block what do i select to "show"? I'm assuming i select the content that i want the block to be present. in my case its classified ads which are nodes. Third, contextual filter. Properties of Content: NID...do i just use what is default?

Backgroud of what I'm trying to do. I have a view that displays a list of ads. Users click on an ad which takes them to the main full ad/node. From here i want users to be able to contact the seller referencing the ad they are viewing. I like your module because it appears that if i can get it to work none of the users will have to leave the page/ad/node to send the seller a message.

Thank you so much for any assistance. This is the final leg of my project and it's your module that i need.

Mark

marty.true’s picture

Issue summary: View changes

Not working for me either...
I've tried all 3 methods - method 1, method 2 and "melting pot" and all 3 ways will display the form in the block however none will send the email.

marty.true’s picture

Status: Closed (fixed) » Active
balajidharma’s picture

Version: 7.x-1.2 » 7.x-1.7
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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