Skip to main content

Questions tagged [contact-form]

Covers questions related to Magento Contact Form.

Filter by
Sorted by
Tagged with
0 votes
1 answer
350 views

How to send welcome email when checkbox is checked in contact form in Magento2.2.5?

I want to send welcome email when a checkbox is checked in contact form in Magento2.2.5? Refer screenshot Any help would be appreciated.
Amy's user avatar
  • 945
1 vote
3 answers
378 views

How to override default contact form Model file in Magento 2.2.5?

I want to override default contact form Model file (ie, Mail.php and mailinterface.php) in Magento 2. Struggling to override this file since the last 2days. Any help would be appreciated. /var/www/...
Amy's user avatar
  • 945
2 votes
1 answer
449 views

How to add field value as Email subject in Magent2.2.5?

I want to add field value as email subject in Magento2.2.5(Refer screenshot) Here subject field is a select field, if I select option-1 value, The selected value should be the subject for the email ...
Amy's user avatar
  • 945
1 vote
2 answers
193 views

Email template for contact form in magento2.2.5?

I have extended contact email form and added few fields(Refer screenshot) Under subject field there are 3 options, based on the subject selected the email should be send to multiple users. For ...
Amy's user avatar
  • 945
1 vote
1 answer
848 views

Magento 2 show captcha at contact us form block section

I use below code to show cms block in cms page {{block class="Magento\Contact\Block\ContactForm" name="contactForm" template="Magento_Contact::form.phtml"}}
gaganbafna's user avatar
0 votes
1 answer
40 views

Magento Getting error on contact form

I am facing this error in contact form submit after Unable to submit your request. Please, try again later if anyone know reply me
Rv Singh's user avatar
  • 1,637
0 votes
1 answer
91 views

How to add text field in contact form by admin extension in Magento 2.2.6

I need to add field in contact form using admin extension when admin add his custom field it automatically add in contact form at frontend contact-us form if anybody know the logic behind how to add ...
ragini's user avatar
  • 25
0 votes
1 answer
648 views

Disable contact form submit onclick

I want to disable the submit button of the contact form onclick, so that the button can be only clicked once. The only problem with this, is that it does not validate the form anymore. It directly ...
JGeer's user avatar
  • 1,422
0 votes
1 answer
398 views

Magento contact form submit button allow click ones

Is it possible to change the behavior of the submit button on the contact form, so that it will only allow to click one time? Now when you fill in the form and click multiple times on the submit ...
JGeer's user avatar
  • 1,422
0 votes
3 answers
2k views

Magento 2 : Overriding Default Contact Form Controller POST.php file

I'm trying to override the contact form post controller in Magento 2.2.6, by following the answer from this thread (Override module-contact view and controller) by creating my own module. I added \...
Mage Explorer's user avatar
1 vote
1 answer
921 views

Magento how to change action url of contact page

I add contact form in CMS page using this code - <form class="form contact" action="<?= $block->escapeUrl($block->getFormAction()) ?>" id="contact-form" method="post" data-...
Gagan's user avatar
  • 565
0 votes
1 answer
422 views

Magento 1.9 contact form validate required not working

For some reason our select dropdown is not required and does not validate the entry. It already contains the class 'required-entry' for the select. What am I missing here? <form action="<?php ...
JGeer's user avatar
  • 1,422
1 vote
2 answers
2k views

Magento 2.2.6 Change 'From' field of magento contact form email to the sender

Currently, when customer submit a contact form through our website, the "sent from" email address we received is our [email protected]. I would like to change the "send from" email address to be the ...
Mage Explorer's user avatar
0 votes
1 answer
566 views

Can't add custom script (leaflet) to Contact page

I'm trying to add a map in Contact page. In order to do that,I did the following: In file: app/design/frontend/MyCompany/MyTheme/Magento_Contact/layout/contact_index_index.xml I added: <page ...
zekia's user avatar
  • 660
0 votes
0 answers
362 views

How to change contact page url in Magento 2

When we entering contact form in footer from any page it redirect only - /contact/index/ Any options such that we can submit form in footer any page without redirect to another page
Gagan's user avatar
  • 565
0 votes
4 answers
3k views

How to send an Email confirmation after contact us

When the client uses the contact form, how can I get a confirmation email to the user?
Alfredo López Nunes's user avatar
0 votes
1 answer
2k views

Getting error of "An error occurred while processing your form. Please try again later." after submitting a form

I am Getting error of An error occurred while processing your form. Please try again later. after submitting a form. Here is my code app/code/Smartwave/Porto/Model/Post.php <?php /** * ...
Bhakti Thakkar's user avatar
4 votes
2 answers
1k views

how to store contact us form details in database programmatically magento 2?

I want to store contact us form details in database programmatically magento 2 ?
Hitesh Balpande's user avatar
2 votes
1 answer
65 views

"Contact us" form in a custom template

I have created a template in which I need to place the "contact us" form. I can currently think of two ways to do this: 1) echo $this->getLayout()->createBlock('customer/form_edit')->...
Metal Mathematician's user avatar
0 votes
1 answer
954 views

Magento 1.9: How do I know if my form is working? Handling post information

I was looking in implement a form that collect a customers name and email information by writing the information into a CSV file. I'm completely new to Magento and got help with the following code ...
user9367637's user avatar
1 vote
0 answers
69 views

Send Contact Form To Different Email, Depending on Select Value?

Does anyone have any experience customizing the Magento Contact module to send the values to different emails depending on email? I'm trying to figure out how to add a select field that would ...
brackfost's user avatar
  • 1,040
3 votes
2 answers
5k views

How to integrate reCAPTCHA v3 in magento 1.9?

I am integrating reCAPTCHA v3 in my magento on registration page and contact form, but I am not getting any help on this as this is new version. Can some one guide me on this. I found we can create ...
Abhilesh Sharma's user avatar
0 votes
0 answers
75 views

How to use more Contact Form templates?

I use this for displaying a contact form on the website: {{block class="Magento\Contact\Block\ContactForm" name="contactForm" template="Magento_Contact::form.phtml"}} But there I would like to edit ...
Valentin PKStore's user avatar
3 votes
1 answer
3k views

Magento 2 Plugin for Contact Form Post Controller

I have added google recaptcha in my contact form. Also, I have added a contact form on CMS page. I have to validate the captcha when post contact form. I have to create a plugin for this, but not ...
Magecode's user avatar
  • 1,524
4 votes
2 answers
4k views

Add Captcha to magento 2 contact form on cms page

I have to add captcha on the contact form. It's working on the default contact URL but not working with the contact form on CMS page. <p>{{block class="Magento\Contact\Block\ContactForm" name="...
Magecode's user avatar
  • 1,524
0 votes
1 answer
563 views

Add CC or BCC to Magento Community Contact form

Referring to this thread: https://stackoverflow.com/questions/30679036/how-to-add-bcc-or-cc-in-magento/51149678?noredirect=1#comment89282991_51149678 Kindly note I test it on my Magento Comunity ...
Marcos's user avatar
  • 51
1 vote
1 answer
2k views

Add new custom field in magento 2 contact form

Could you please help to add a new custom field in Magento 2 contact form.
Intellect Outsource's user avatar
7 votes
2 answers
2k views

How to add file upload option to Magento2 contact form?

I want to give users option to upload a file in magento2 contact form and recieve it in the email as attachment. How to do that? Please guide.
Mounika's user avatar
  • 223
0 votes
1 answer
48 views

Separate mail for customer and store(owner of store) for enquiry form

I have a new form named Service Request. When user submit a request I need to get separate mail for both user and store. The user content should be like : Thanks You for contacting, Our team will ...
Anandhu Vijayan's user avatar
0 votes
1 answer
2k views

Magento 2 - Custom contact form not showing up

How would I create a secondary contact form in Magento 2.2? I'd like it to have the following fields: Name Phone Email Checkbox 1 Checkbox 2 Submit button I have tried following this thread which ...
Jarxberg's user avatar
  • 123
0 votes
2 answers
110 views

How Can I Check If Mail id Available in DB or not?

I am getting so many spam from inquiry submission, My contact form : <?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that ...
zus's user avatar
  • 123
0 votes
1 answer
1k views

Magento2.2 Custom form not sending data via email

I have followed this post about creating a form that sends data to a specific email. The module works, but the form isn't sending data to the given email. For simplicity I am going to paste the code ...
SUPERDEVELOPER's user avatar
1 vote
0 answers
87 views

Magento 2.2. with Varnish, Contact form not working

I am trying to test the contact form, but varnish is giving me 503 errors every time I am trying to submit the form. However, I don't think varnish is the issue here. I am calling the form using the ...
SUPERDEVELOPER's user avatar
0 votes
1 answer
42 views

How to add a Contact Form to sent to email address

How to add a contact form to our contact page but finding it difficult to do so. I can add the form via html and styling etc but getting it to send to an email address is where I'm having problems.
Richard Howell's user avatar
2 votes
2 answers
99 views

How to give condition for Contact Form Only For Registered Customer?

Below is my Contact Form Email id Box : <div class="field"> <label for="email" class="required"><em>*</em><?php echo Mage::helper('contacts')->__('...
zus's user avatar
  • 123
2 votes
0 answers
845 views

stream_socket_enable_crypt error when trying to send emails in Magento2

I am getting the following error on the frontend of my Magento 2 (v 2.2.3) website when trying to share Wishlists or send a Contact Form. This hasn't always been the case just since I switched from ...
MartinaL's user avatar
  • 131
2 votes
1 answer
3k views

Add custom Select to contact form Magento 2 - Theme Luma

following other guides, I added in the page form to /httpdocs/vendor/magento/module-contact/view/frontend/templates/form.phtml and I added the code <div class="field selezione required"&...
Alessandro's user avatar
0 votes
2 answers
2k views

Magento2 : How to override contacts form.phtml in child theme

I want to change page title in child theme for contact-us page. But when I'm trying to override file Magento_Contact/templates/form.phtml in my child theme from parent theme then on frontend the page ...
Vinaya Maheshwari's user avatar
1 vote
0 answers
389 views

Magento2 Contact Form Emails Not Received

We're experiencing an issue with one of our Magento 2 sites where the contact form emails are not being received. Order emails are being received - it's only the contact form that is failing. There ...
Eligos's user avatar
  • 168
0 votes
2 answers
2k views

How can i programatically send contact us mail in magento 2?

i have tried using the below code but didn't get the solution. public function contactUs() { //$params = $this->getRequest()->getParams(); //$mail = new Zend_Mail(); $this->...
christy's user avatar
  • 157
0 votes
2 answers
385 views

How can I use different emails on contact us page?

We have a contact us page, and we have the fields: Name, Email, Telephone, Reason, and Message. We have different people who deal with different things, so we were thinking the reason could be the ...
zcoyne's user avatar
  • 109
0 votes
1 answer
532 views

How to change the type of validation used in fields on Magento 2 forms and where to find the list? [Q&A]

Say I wanted to validate my contact form to only accept UK phone numbers and a valid amount of currency, how would I do this in Magento 2? I want to change my contact form so it allows my users to put ...
John's user avatar
  • 837
1 vote
1 answer
68 views

Contact Us Page [closed]

Currently our contact page doesn't work. We installed MailChimp in hopes that it work link, but apparently that's only for the order confirmations etc I tried it as it is, but unfortunately it doesn'...
zcoyne's user avatar
  • 109
0 votes
1 answer
1k views

Secondary contact form

how I can create a secondary contact form with mangento2x, I want to customize a contact form for clients feedback, I saw a lot of extensions that do what I want but they are not free, is there an ...
user3005390's user avatar
0 votes
1 answer
283 views

contact form edit fields

Hi Guys I'm new to Magento, I'm trying to edit a contact form previously developed by another company and cannot seem to find the code anywhere please advise. I have checked the static blocks to no ...
shak's user avatar
  • 3
0 votes
3 answers
1k views

M2: How to redirect contact form page to CMS page

I tried to 301 redirect contact form page URL to custom cms page URL with Magento 2's rewrites, but it does not seem to redirect the URL for some reason. Is there some special trick to be done with ...
Webninja's user avatar
  • 1,613
1 vote
0 answers
26 views

Transactional Email: What to put in Template Content

I have created a custom form, named careersForm.phtml. I have customized my fields. The problem is it does not send to the email because of different fields. I have found out that it should be done in ...
Lily's user avatar
  • 11
1 vote
1 answer
2k views

Magento Contact Form: Unable to submit your request. Please, try again later

When visitors to our website try to fill in our contact form on our contact page, they are sent to /contact/index, and receive the error Unable to submit your request. Please, try again later. At ...
Steve's user avatar
  • 121
1 vote
1 answer
503 views

Magento 2 : Add condition for form element in email template

Added new input field in default Contact form : /magento_root/app/design/frontend/VENDER_NAME/YOUR_THEME/Magento_Contact/templates/form.phtml <input title="Test Id" name="testid" id="testid" ...
Nitesh Kuyate's user avatar
0 votes
1 answer
146 views

How add Contact Form in Magento CMS Page/Block

I use fishpig wordpress integration with addons contact form 7 documentation say this To do this, you can make use of the Widget block (code below). <reference name="content"> <block ...
yavonz15's user avatar
  • 417