Stack Exchange Network

Stack Exchange network consists of 174 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
24 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
1answer
29 views

Looking for a advances 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
31 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
24 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 ...
0
votes
0answers
20 views

Associating error messages with input fields in Contact Form

I'm using the Craft contact form. I'm trying to associate the input fields with their error messages if they're displayed. To do this, I needed to add unique ID to the UL container that contains the ...
0
votes
0answers
24 views

Craft 2: Stop required field errors refreshing page

I'm currently using Pixel & Tonics Contact Form. When you submit a form, it refreshes the page with errors(if any) or redirects to a thanks page. Might be a silly question, but how do I stop it ...
2
votes
2answers
125 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 ...
0
votes
0answers
131 views

Mailgun emails sent in development, but not in production

I'm using the Craft Contact Form Plugin, along with the Mailgun plugin, to send emails on my personal website. I've configured Mailgun's domain names, it's active on Mailgun's panel, and DKIM and SKF ...
2
votes
1answer
40 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
249 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
35 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
24 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
247 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
125 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
140 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
109 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 ...
0
votes
0answers
135 views

Contact Form – Error List – “unknown function” error

I don't understand, why the "Error List" doesn't work. It brings up the alert "Unknown 'errorList' function". Is it my code or is there anything in craft I need to set up first? <form class="form" ...
1
vote
1answer
96 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 ...
0
votes
0answers
326 views

Contact form to send email and sign up to MailChimp list

I'm trying to create a contact form that includes a subscribe checkbox which will sign the user up to a MailChimp list. I've been using the craft plugin ContactForm and have found this MailChimp ...
1
vote
1answer
89 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
698 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
35 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
281 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
51 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
91 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
135 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
55 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
37 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
838 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
73 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
69 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
257 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
385 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
279 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
219 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
134 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
87 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
617 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
117 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
115 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
149 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
800 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
88 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
103 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
184 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
605 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
645 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
88 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 ...