Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [plugin-contactform]

The tag has no usage guidance.

1
vote
1answer
29 views

Error with Contact Form plugin on submission

I am using the Craft Contact Form plugin (https://github.com/craftcms/contact-form) and am having an issue where I get an error page on submission. The form is submitting correctly (the submission is ...
1
vote
2answers
33 views

Contact form on form submission redirects to index.twig

I've run into issues with the contact form plugin - https://github.com/craftcms/contact-form/issues/156 - Any ideas
0
votes
1answer
82 views

Webhook plugin & hooking into Contact Form

As my first delve into webhooks I've just installed the Pixel&Tonic Webhooks plugin. I'm trying to send data from a front end contact form to Zapier. The front end form uses the Pixel&Tonic ...
1
vote
2answers
85 views

Contact Form Setup on Craft CMS

I am just getting to grips with Craft CMS and am finding the Contact Form plugin tricky to use. I have built a reasonable site structure, figured how fields, sections, etc work at a relatively basic ...
1
vote
2answers
94 views

Looking for a advanced form plugin for CraftCMS

I'm currently using amforms from a&m impact on a couple of sites. However, it looks like this plugin won't get a craftcms version 3 update. In addition, my requirements for a form plugin have ...
1
vote
1answer
34 views

P&T Contact Form v1 adding code for 'beforeSend'

Very new to Craft, so can someone please tell me what class/file I'd add the 'The beforeSend event' code, as I'd like to filter out some spam? The documentation https://docs.craftcms.com/v2/plugins/...
1
vote
2answers
58 views

Store Contact Form submissions

I am coming to Craft from Perch Runway so am trying to work out how to replicate some functionality from one to the other. With Runway any form submissions, as well as being emailed to specified ...
2
votes
2answers
365 views

Contact Form sent via Ajax with file upload returns 302 instead of 200 status code

I’m using the Contact Form plugin to submit a form that can also upload files via Ajax. The problem ist that instead of a success (200) I get a status code of 302. But I receive the resulting mail ...
2
votes
1answer
46 views

P&T Contact Form not submitting Craft 2

I'm working on a site that I did not build. The first party contact form stopped submitting so I updated Craft and all plugins. All went smoothly but the form is still not submitting. Checked the ...
1
vote
1answer
482 views

Contact Form Plugin - Not sending/receiving emails?

I'm developing my first website on Craft 3 and I'm essentially a front-end designer so my PHP/MySQL/AJAX knowledge is extremely limited. I installed the Contact Form plugin as explained here https://...
2
votes
1answer
41 views

Contact form plugin only sending the content of the textarea?

I'm working in a form with five fields, but I'm only receiving the content in the comments field; I'm not getting anything from the other four, please check my code below. <div class="form-...
0
votes
0answers
30 views

Contact Form Plugin Not Sending when message array contains checkbox

Hi I've been using a contact form on a website for sometime now all working fine. I'm trying to add a checkbox to the form for GDPR consent. The box is not a required field. So template wise I've ...
2
votes
1answer
390 views

Contact Form AJAX not working in Craft 3

This is my first Craft website, and after trying out Craft 2 I decided it would be a good idea to have move my site to Craft 3 for longevity. I used to the free Contact Form plugin and managed to ...
2
votes
1answer
159 views

proc_open error with the Contact Form

I get the following error upon submit of the contact form (Pixel and Tonic's version). proc_open() has been disabled for security reasons Using Craft 3.0.5 and Contact Form 2.1.1. Email is being ...
2
votes
1answer
201 views

Craft CMS contact form plugin works locally but not in production?

Locally in a MAMP environment Craft CMS/Contact Form plugin works great! But for some reason in production on a actual live server on the internet it fails to successfully send any emails. I'm not ...
1
vote
1answer
172 views

PHP Exception for errors on Craft Contact Form with additional fields

I'm having trouble with additional message fields in my Craft Contact Form using Craft 3 and the Pixel & Tonic Contact Form plugin. I've added two additional fields by splitting up the message ...
1
vote
1answer
113 views

How to encrypt or hide variable/dynamic email address in contact form

I want to allow people to chose which person/department to send a message to using the P&T Contact Form plugin. I've seen one method to do this, eg: <select name="toEmail"> <option ...
1
vote
1answer
123 views

Trouble with submitting Contact Form plugin contact via AJAX

I’m having trouble getting Contact Form to work when posting through AJAX. Form: {% macro errorList(errors) %} {% if errors %} <ul class="errors"> {% for error in ...
1
vote
3answers
900 views

Contact Form plugin - using Ajax, CSRF 400 bad request

I am using the Contact Form plugin with AJAX. I have used the JS AJAX script supplied in the plugin but i get a 'Bad request: CSRF token could not be verified' error. I have seen many other posts on ...
1
vote
1answer
39 views

Send to a friend that sends an email to a defined email of the users choosing

using the contactForm plugin, I want to make a contact form, that sends to an email address of the users choosing, not the email set up in the admin. Does anyone know the simplest way of doing this?
1
vote
1answer
18 views

How to configure Craft From for a form roulet/carousel?

I'm making a website where the 1st submit of the form needs to be sent to 6 people on a list, the second submit of that same form needs to be send to the next 6 persons on the list, and so on. I also ...
1
vote
1answer
338 views

Contact Form: Name and Email in Message Body

This is a follow-up to an earlier question from 2014: P&T Contact Form plugin: How can I copy “name” and “email address” in the body of the mail? ... it seems that Craft (and the plugin) has gone ...
2
votes
1answer
58 views

Sprout Email conflicts with Craft Contact Form

I have the latest versions of Craft CMS, Sprout Email and Craft Contact plugins. Sprout behaves fine with some notifications I have set up. However, if I submit a contact form it throws a PHP error - ...
1
vote
2answers
131 views

Additional Fields aren't sent within Contact Form email

I am using Contact Form v1.9.0 with latest version of Craft. I've additional fields to the form so that the inputted values appear in the email message. However, the only field being sent within the ...
1
vote
1answer
178 views

How does “hash” work in the context of the Contact Form?

I'm running into some trouble using the "hash" filter in Craft's first-party Contact Form plugin. The docs suggest using it like so: <input type="hidden" name="redirect" value="{{ 'contact/thanks?...
1
vote
2answers
77 views

Checking submission from the Contact Form plugin

I've potentially have had some messages not come through to email. I've seen the user has reached my thank you page but I don't always receive a message. Are these stored anywhere in the Database to ...
1
vote
1answer
40 views

Contact Form email address set in the plugin's setting being changed by Linode server?

I've used the contact form plugin many times with no issues. However I have a site set up on a Linode server and for some reason the from address that I have added in the contact form settings e.g. ...
3
votes
2answers
1k views

Integrate Google reCAPTCHA into Contact Form plugin

So I just recently plugged in pixelandtonic/ContactForm plugin into my website and I realized I got about 3 spam emails straight into my inbox on the first day it was up. Is there a way to integrate ...
2
votes
1answer
78 views

Re-populate additional fields on Contact Form on failure of form validation

I'm using additional fields on my contact form. I want to re-populate the additional fields if/when the form fails validation, but it's not working so far. To re-populate a standard field, the code ...
2
votes
2answers
77 views

Contact Form plugin - different recipients per locale

What is the best way to define different sendto emails addresses for the ContactForm plugin, depending on the locale the site is currently viewed in? I am setting up a multilanguage site, and the ...
0
votes
2answers
287 views

How to add recipient drop-down selection field with the Contact Form plugin?

There is a guide on GitHub page how to add additional fields, but how to add recipient selection?
1
vote
1answer
463 views

Multiple contact forms - Different recipients

I'm creating a website that has a contact form on two different pages. I am using the Pixel & Tonic ContactForm plugin and currently have a working contact form on one page - This one requires ...
1
vote
1answer
1k views

Craft CMS HTML Email Template

I have a contact form that works using Postmark and Contact Form plugin. I'm trying to find a way to edit the format of the email that I'm getting when someone sends a message via the website contact ...
1
vote
2answers
305 views

ContactForm – How to make fields required

I'm using the P&T ContactForm Plugin. How can I make more field required? https://github.com/pixelandtonic/ContactForm In the version from Github only the message and email field are required. ...
0
votes
1answer
245 views

Contact Form on Windows Azure

I’m having some trouble getting a contact form to submit and function correctly. The live instance of the site is on Windows Azure but my staging and local versions are unix. Is there any reason for ...
1
vote
2answers
135 views

Contact Form plugin email is not being received, not clear if it is being sent

I am using the Pixel & Tonic Contact Form plugin. I set it up using the Mijingo tutorial. Everything appears to be working ... I hit submit, redirects to thank you, no message received. Setup ...
1
vote
1answer
92 views

Contact Form Plugin how to send to different recipients based on country selected?

I'm trying to build a plugin that fires on the Contact Form Plugins contactForm.beforeSendwhat the plugin needs to do is add a recipient email if certain countries are selected. So far I have created ...
2
votes
1answer
712 views

How to do an ajax submission to Craft Contact Form with attachments using FormData?

JS .on('submit', '#application-form', function(e) { e.preventDefault(); var form = $(this), formData = new FormData(form[0]), msgBox = form.find('.msg-box'), ...
0
votes
1answer
129 views

Craft Contact Form Not Picking Up HTML [closed]

I'm using the craft contact form plugin and I am trying to format the sent email as html. I have added the following to the primary contact form plugin class: public function init() { ...
1
vote
1answer
124 views

contactform.php messing up site

I've tried creating a contactform.php file with the P&T Contact Form plugin and using the code in the documentation to be able to programmatically add recipients. However, when I use this code: &...
3
votes
2answers
159 views

Recipients as dropdown with Contact Form Plugin

I need to give users the ability to be able to choose which channel of the company their message goes to, i.e. General Inquiries, Estimates etc. using the P&T Contact Form Plugin and a select box. ...
1
vote
2answers
890 views

Choose custom email template for Contact Form plugin

I could've sworn I've read somewhere on here that the contact form plugin should use the same template as defined in the site's email settings, but it's not working for me. Does anyone know if the ...
1
vote
1answer
95 views

What does the Before compile event inside the Contact Form plugin do?

I see there is an undocumented event called onBeforeMessageCompile in the Contact Form plugin source: Craft::import('plugins.contactform.events.ContactFormMessageEvent'); $event = new ...
2
votes
1answer
105 views

phpmailer Exception while using Pixel & Tonic contact-form plugin

Link to Github repository for plugin: https://github.com/pixelandtonic/ContactForm Being given an error by the plugin where it is interpreting my Twig variable literally as a string instead of what ...
2
votes
1answer
214 views

Adding dynamic second email address to Contact Form plugin

According to the Contact Form plugin docs, I can do: <input type="hidden" name="toEmail" value="{{ 'name@domain.com, name2@domain2.com' | hash }}"> That seems to work fine, but one of those ...
4
votes
2answers
680 views

How can I check from a plugin config file if devMode is enabled?

Using the Pixel & Tonic Contact Form plugin, I added a config file (config/contactform.php) to override plugin settings from the CP. I would like to change some settings if devMode is enabled : ...
1
vote
1answer
667 views

Dynamically specify the 'To' email/recipient using Contact Form plugin

I'm trying to leverage the Contact Form plugin so I can dynamically specify the To email/recipient (via a text input, not as a hidden field). I've tried via my own plugin to tap into the beforeSend ...
1
vote
1answer
92 views

P&T Contact Form plugin : how can I dynamically add multiple email recipients inside the form config file?

I don't want to show up the email recipients in the source code using this : <input type="hidden" name="toEmail" value="{{ 'me@example.com,me2@example.com'|hash }}"> I want to manage multiple ...
1
vote
2answers
275 views

Missing error messages using Craft contact form plugin

I've got a small site for a B&B, entirely based on a single Craft structure. Every page uses the same entry template, which extends a layout template. This layout template has header, sidebar, ...
1
vote
1answer
412 views

Editing error messages and allowing a phone number input in a P&T Contact Form

Firstly, thanks very much for the help I've already had from members here. It's been straightforward and easy, even for a newbie like me, to understand. At the moment, I'm working on editing one of ...