Questions tagged [plugin-contactform]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

Contact form plugin ajax submit URL not working

I am using contact form plugin for forms in my craft website. For avoiding page redirection, I followed ajax submit for the form, but it is not redirected to controller code. My form is as below:- ...
0
votes
0answers
14 views

Contact form not sending email field

Currently the contact form on our site has Name, Email, Phone and Message fields but the Email a customer enters won't send through to us. Not sure if the below controls this but any help is much ...
1
vote
1answer
37 views

Contact Form Extensions - Checkbox Templating

Cannot for the life of me get checkbox values to display in a HTML email template using the Contact Form extensions plugin. Form snippet: <input type="hidden" name="message[type]" value=""> &...
0
votes
0answers
14 views

Contact Form Extensions plugin not sending emails with reCaptcha

Hi I am using the latest version of contact form extensions plugin, which works fine until I enable v3 reCaptcha. I have the everything setup correctly and have tried lowering the score threshold but ...
1
vote
1answer
21 views

Email Field Being Dropped on sendMessage (Craft Contact Form Plugin)

New to Craft CMS and trying to solve a mystery. When this contact form sends, the recipients don't get the email field. We get the others, including the consent, but the email field is missing. Any ...
0
votes
0answers
10 views

Confirmation email still sent from old address after changing system email address

I noticed a client site still used my development email address as the system email address. I changed the setting accordingly: Old system email: jannis@ourdomain.tld New system email: online@...
0
votes
0answers
29 views

How do I add a custom Error List for Contact Plugin?

This should be covered in the documentation, but it's not. How do I modify the error messages that are displayed when a field is not completed (eg. the email field). Currently, the error returns "Your ...
1
vote
1answer
16 views

Where should I add the file to write the code for the `afterSend` event for contact form plugin?

I am using the contact form plugin in Craft CMS 3. I want to add the afterSend event. Where should I add the file to write the code for the afterSend event?
0
votes
0answers
73 views

Contact form plugin - cannot add attachment

I use contact form plugin, on craft installed on local xampp server. I created simple module that would add attachment to every message sent by contact form using beforeSend event. Event::on(Mailer::...
1
vote
1answer
401 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
47 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
1
vote
1answer
220 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
226 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 ...
5
votes
2answers
264 views

Looking for an advanced form plugin for Craft CMS

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
47 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
189 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
648 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
72 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
923 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
62 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-...
2
votes
1answer
659 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
235 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
263 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
225 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
155 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
194 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
1k 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
61 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
398 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
71 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
185 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
280 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
117 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
46 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
2k 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
89 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
87 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
344 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
675 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
2k 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
344 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
269 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
139 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
112 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
946 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
146 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
143 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
3answers
181 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
3answers
1k 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 ...