Questions tagged [contact-form]

Covers questions related to Magento Contact Form.

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

magento 2 contact us add multiple recipients

task: create form "contact us" send data from the form to 2 Email addresses I created form but magento 2 does not provide option in admin to add multiple emails separated by , I was looking for a ...
0
votes
0answers
16 views

How to submit contact us data to Magento 2 contact us form action using graphqL?

How to submit contact us form data to Magento default functionalities using graphQl. I know to want to pass the form data using Mutation and doesn't have a clear idea to achieve the target. Please ...
0
votes
1answer
40 views

Add custom field in contact form

I added some fields in the Magento contact form, but I have a problem with one field, which is a select type. I try to display the label of the option on the mail but now the value is display.... ...
0
votes
1answer
15 views

Reload captcha doesn't show on custom theme

I use this layout but now Reload captcha doesn't show up. Any idea? Layout: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:...
0
votes
0answers
58 views

plugin for contact form magento2

im trying to make plugin for contact form to send email with the fields: first name last name phone comment email last name email phone comment Here my code <?php namespace Convert\...
0
votes
2answers
33 views

plugin for custom field for contact form magento2

I want to create plugin for contact form with two custom fields first-name and last-name to send email. anyone can help with this? Thanks in advance. in di.xml <config xsi:...
0
votes
0answers
16 views

Hideit input on other forms

I stumbled across hideit input on contact us form https://magento.stackexchange.com/a/107656/70343 Makes sense to catch bots filling out the form. Just wondering whether it's worth adding to other ...
0
votes
1answer
52 views

Magento 2.3 : Error while submitting the contact form

When I try to submit the default contact us form, this is the error that I get. Warning: preg_replace(): Compilation failed: invalid range in character class at offset 39 in /home/hudsonpa/...
0
votes
3answers
32 views

Magento 1: How to add captcha on a custom page

I found an app that adds a captcha to the contact page - it works well. But it doesn't add it to the other custom forms I've built. <layout version="0.1.0"> <contacts_index_index translate=...
0
votes
1answer
27 views

Email Error On Website

I am getting this error on our website 5.7.1 : Sender address rejected: not owned by user Email Just to make you aware email 1 is different to email 2 Any advice on resolving this would be great.
0
votes
2answers
76 views

Contact Form in Magento 2 Custom Module is Not Sending Email

I am currently trying to create a custom form in Magento 2.2.7. The purpose of this contact form is to provide our trade (wholesale) customers with a separate contact form to our retail customers (i.e....
0
votes
2answers
56 views

call contact form on phtml page

I called contact form in my .phmtl page using this code: <?php include ($block->getTemplateFile('Magento_Contact::form.phtml')) ?> The problem is when I click on submit, there's no success ...
4
votes
2answers
42 views

How to create a custom form?

I am trying to create a create a page in block but I'm trying to add a custom contact form. I can view it in frontend but it wouldn't work its not doing anything when I click submit. is there anyone ...
0
votes
0answers
32 views

Contact form in CMS page with form.additional.info

I'm trying to add the contact form to my CMS page. I can add {{block class="Magento\Contact\Block\ContactForm" name="contactForm" template="Magento_Contact::form.phtml"}} as indicated on this post ...
1
vote
1answer
38 views

Magento 2 : How to create custom Contact form

I am using Magento 2.3 As per my requirement. I have to create multiple form in my website So can anyone provide me appropriate instruction for how can i create custom form like contact form Thanks
1
vote
2answers
25 views

Pass current sku number to the custom phtml form before submission ( data-bind, placeholder)

i'm trying to past the value of $current_sku to the end the $title text field input on the form. How can I achieve it? Correctly, it's showing in the text input hints.. <?php $objectManager = ...
0
votes
1answer
48 views

Overriding the contact form module gets the fatal error in Magento2.2.5?

I have overriden the contact form module, after disabling the default contact form validation and apply my custom validation gets the following error: Fatal error: Uncaught TypeError: Argument 1 ...
1
vote
1answer
78 views

How to remove default contact form validation in Magento2.2.5?

I want to remove default contact form validation and add my jquery validation in contact form in Magrnto2.2.5? Any help would be appreciated.
0
votes
0answers
29 views

Stop sending contact form emails to consumer in magento2.2.5?

I want to Stop sending contact form emails to consumer in magento2.2.5? Any help would be appreciated.
0
votes
1answer
50 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.
1
vote
3answers
65 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/...
2
votes
1answer
72 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 ...
1
vote
2answers
60 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 ...
1
vote
1answer
169 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"}}
0
votes
0answers
17 views

Contact Form Drop-Down List that Changes the 'Template Subject' Only?

Is it possible to create a Drop-Down List that sends the same "Transactional Email" but with a different 'Template Subject' depending on which option value was selected? I am not concerned with ...
0
votes
1answer
15 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
0
votes
1answer
56 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 ...
0
votes
1answer
115 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 ...
0
votes
1answer
76 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 ...
0
votes
3answers
486 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 \...
1
vote
1answer
117 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-...
0
votes
0answers
44 views

Magento 1.9 - local.xml Template Block Not Loading when form.phtml Is Called from a CMS Page

The title is probably somewhat confusing. I'll explain as best I can. I built my own little custom CAPTCHA module for the contact us page. I modified form.phtml for my current theme and the CAPTCHA ...
0
votes
1answer
162 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 ...
1
vote
2answers
272 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 support@example.com. I would like to change the "send from" email address to be the ...
0
votes
1answer
109 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 ...
0
votes
0answers
106 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
0
votes
3answers
576 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?
0
votes
1answer
500 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 /** * ...
3
votes
2answers
429 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 ?
2
votes
1answer
43 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')->...
0
votes
1answer
89 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 ...
0
votes
0answers
756 views

Captcha in contact form Magento 1.9

I am trying below link to show captcha in contact form of magento 1.9, Its not loading after following this link How to implement Magento Captcha in Contact- Us form? Please anybody help out in ...
1
vote
0answers
26 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 ...
2
votes
2answers
2k 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 ...
0
votes
0answers
62 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 ...
1
vote
1answer
275 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 ...
3
votes
1answer
1k 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="...
0
votes
1answer
216 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 ...
1
vote
1answer
551 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.
3
votes
2answers
1k 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.