How to create a custom form?Magento contact form not displayingHow do I create custom form submit in product detailIssue with creating additional contact forms - recaptchaCustom fields in Contact USRedirect custom contract forms to the original form pageCustom Contact Form using Custom Template (Works .. Kind of)Contact form after submission not redirecting to cms page Magento 2Contact us form email can recieve admin but not receive customer issue?Contact Form Modal and Ajax SubmitHow to use more Contact Form templates?
What is the origin of Scooby-Doo's name?
Long term BTC investing
How does metta sutra develop loving kindness
Can the negators "jamais, rien, personne, plus, ni, aucun" be used in a single sentence?
Is this one of the engines from the 9/11 aircraft?
Accidentals and ties
Unusual mail headers, evidence of an attempted attack. Have I been pwned?
C-152 carb heat on before landing in hot weather?
Is there a maximum distance from a planet that a moon can orbit?
How long would it take to cross the Channel in 1890's?
Why doesn't a marching band have strings?
Should my manager be aware of private LinkedIn approaches I receive? How to politely have this happen?
Trainee keeps missing deadlines for independent learning
Should I prioritize my 401(k) over my student loans?
Where can I find a database of galactic spectra?
How does Powershell create fake drive labels in Windows?
What's currently blocking the construction of the wall between Mexico and the US?
Cascading Repair Costs following Blown Head Gasket on a 2004 Subaru Outback
expiry or manufactured date?
What is this tool/thing in an Aztec painting?
Folding basket - is there such a thing?
Would it be a copyright violation if I made a character’s full name refer to a song?
If I wouldn't want to read the story, is writing it still a good idea?
Suggested order for Amazon Prime Doctor Who series
How to create a custom form?
Magento contact form not displayingHow do I create custom form submit in product detailIssue with creating additional contact forms - recaptchaCustom fields in Contact USRedirect custom contract forms to the original form pageCustom Contact Form using Custom Template (Works .. Kind of)Contact form after submission not redirecting to cms page Magento 2Contact us form email can recieve admin but not receive customer issue?Contact Form Modal and Ajax SubmitHow to use more Contact Form templates?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
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 who could help me out or any suggestions
Is it good to create a new module for custom form?
How I'm calling the .phtml in CMS block
block class="MagentoContactBlockContactForm" name="contactForm" template="my_module::form.phtml"
but not sure why action="<?= $block->escapeUrl($block->getFormAction()) ?>
isn't working in .phtml
forms static-block contact-us contact-form
|
show 3 more comments
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 who could help me out or any suggestions
Is it good to create a new module for custom form?
How I'm calling the .phtml in CMS block
block class="MagentoContactBlockContactForm" name="contactForm" template="my_module::form.phtml"
but not sure why action="<?= $block->escapeUrl($block->getFormAction()) ?>
isn't working in .phtml
forms static-block contact-us contact-form
Try this block class="MagentoContactBlockContactForm" name="contactForm" template="My_Module::form.phtml". You have added ( and ) at the start and end of code.
– Sukumar Gorai
Jun 14 at 11:43
@SukumarGorai what you mean by this ("You have added ( and ) at the start and end of code.")
– jibin george
Jun 14 at 11:50
At the start of your code there is bracket "(" and end ")". Remove those.
– Sukumar Gorai
Jun 14 at 11:54
</div> block class="MagentoContactBlockContactForm" name="newContactForm" template="Limitless_HelpCenterContactForm::form.phtml"</div> </div> this si what i have i dont have the brackets()
– jibin george
Jun 14 at 11:56
the person who edited this add them brackets in
– jibin george
Jun 14 at 11:56
|
show 3 more comments
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 who could help me out or any suggestions
Is it good to create a new module for custom form?
How I'm calling the .phtml in CMS block
block class="MagentoContactBlockContactForm" name="contactForm" template="my_module::form.phtml"
but not sure why action="<?= $block->escapeUrl($block->getFormAction()) ?>
isn't working in .phtml
forms static-block contact-us contact-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 who could help me out or any suggestions
Is it good to create a new module for custom form?
How I'm calling the .phtml in CMS block
block class="MagentoContactBlockContactForm" name="contactForm" template="my_module::form.phtml"
but not sure why action="<?= $block->escapeUrl($block->getFormAction()) ?>
isn't working in .phtml
forms static-block contact-us contact-form
forms static-block contact-us contact-form
edited Jun 14 at 12:27
jibin george
asked Jun 14 at 11:06
jibin georgejibin george
1469 bronze badges
1469 bronze badges
Try this block class="MagentoContactBlockContactForm" name="contactForm" template="My_Module::form.phtml". You have added ( and ) at the start and end of code.
– Sukumar Gorai
Jun 14 at 11:43
@SukumarGorai what you mean by this ("You have added ( and ) at the start and end of code.")
– jibin george
Jun 14 at 11:50
At the start of your code there is bracket "(" and end ")". Remove those.
– Sukumar Gorai
Jun 14 at 11:54
</div> block class="MagentoContactBlockContactForm" name="newContactForm" template="Limitless_HelpCenterContactForm::form.phtml"</div> </div> this si what i have i dont have the brackets()
– jibin george
Jun 14 at 11:56
the person who edited this add them brackets in
– jibin george
Jun 14 at 11:56
|
show 3 more comments
Try this block class="MagentoContactBlockContactForm" name="contactForm" template="My_Module::form.phtml". You have added ( and ) at the start and end of code.
– Sukumar Gorai
Jun 14 at 11:43
@SukumarGorai what you mean by this ("You have added ( and ) at the start and end of code.")
– jibin george
Jun 14 at 11:50
At the start of your code there is bracket "(" and end ")". Remove those.
– Sukumar Gorai
Jun 14 at 11:54
</div> block class="MagentoContactBlockContactForm" name="newContactForm" template="Limitless_HelpCenterContactForm::form.phtml"</div> </div> this si what i have i dont have the brackets()
– jibin george
Jun 14 at 11:56
the person who edited this add them brackets in
– jibin george
Jun 14 at 11:56
Try this block class="MagentoContactBlockContactForm" name="contactForm" template="My_Module::form.phtml". You have added ( and ) at the start and end of code.
– Sukumar Gorai
Jun 14 at 11:43
Try this block class="MagentoContactBlockContactForm" name="contactForm" template="My_Module::form.phtml". You have added ( and ) at the start and end of code.
– Sukumar Gorai
Jun 14 at 11:43
@SukumarGorai what you mean by this ("You have added ( and ) at the start and end of code.")
– jibin george
Jun 14 at 11:50
@SukumarGorai what you mean by this ("You have added ( and ) at the start and end of code.")
– jibin george
Jun 14 at 11:50
At the start of your code there is bracket "(" and end ")". Remove those.
– Sukumar Gorai
Jun 14 at 11:54
At the start of your code there is bracket "(" and end ")". Remove those.
– Sukumar Gorai
Jun 14 at 11:54
</div> block class="MagentoContactBlockContactForm" name="newContactForm" template="Limitless_HelpCenterContactForm::form.phtml"</div> </div> this si what i have i dont have the brackets()
– jibin george
Jun 14 at 11:56
</div> block class="MagentoContactBlockContactForm" name="newContactForm" template="Limitless_HelpCenterContactForm::form.phtml"</div> </div> this si what i have i dont have the brackets()
– jibin george
Jun 14 at 11:56
the person who edited this add them brackets in
– jibin george
Jun 14 at 11:56
the person who edited this add them brackets in
– jibin george
Jun 14 at 11:56
|
show 3 more comments
2 Answers
2
active
oldest
votes
- You should create controller as explained in
Create controller - Give link of that controller in your form action.
- In controller execute() method you can get posted data as below:
$data=$this->getRequest()->getParam('inputname');
- Do required processing with received data.
I have tried this now but no result same as before
– jibin george
Jun 14 at 11:52
Do you get redirected to controller page or not?
– Khushbu
Jun 14 at 12:38
i dont have no redirect, the form isn't working l no error message when i press submit
– jibin george
Jun 14 at 12:50
add a comment |
i have tried creating controller. but no result this is the form i have created even if i click submit i am not even getting no error message. @ Khushbu
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f278381%2fhow-to-create-a-custom-form%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
- You should create controller as explained in
Create controller - Give link of that controller in your form action.
- In controller execute() method you can get posted data as below:
$data=$this->getRequest()->getParam('inputname');
- Do required processing with received data.
I have tried this now but no result same as before
– jibin george
Jun 14 at 11:52
Do you get redirected to controller page or not?
– Khushbu
Jun 14 at 12:38
i dont have no redirect, the form isn't working l no error message when i press submit
– jibin george
Jun 14 at 12:50
add a comment |
- You should create controller as explained in
Create controller - Give link of that controller in your form action.
- In controller execute() method you can get posted data as below:
$data=$this->getRequest()->getParam('inputname');
- Do required processing with received data.
I have tried this now but no result same as before
– jibin george
Jun 14 at 11:52
Do you get redirected to controller page or not?
– Khushbu
Jun 14 at 12:38
i dont have no redirect, the form isn't working l no error message when i press submit
– jibin george
Jun 14 at 12:50
add a comment |
- You should create controller as explained in
Create controller - Give link of that controller in your form action.
- In controller execute() method you can get posted data as below:
$data=$this->getRequest()->getParam('inputname');
- Do required processing with received data.
- You should create controller as explained in
Create controller - Give link of that controller in your form action.
- In controller execute() method you can get posted data as below:
$data=$this->getRequest()->getParam('inputname');
- Do required processing with received data.
answered Jun 14 at 11:16
KhushbuKhushbu
18713 bronze badges
18713 bronze badges
I have tried this now but no result same as before
– jibin george
Jun 14 at 11:52
Do you get redirected to controller page or not?
– Khushbu
Jun 14 at 12:38
i dont have no redirect, the form isn't working l no error message when i press submit
– jibin george
Jun 14 at 12:50
add a comment |
I have tried this now but no result same as before
– jibin george
Jun 14 at 11:52
Do you get redirected to controller page or not?
– Khushbu
Jun 14 at 12:38
i dont have no redirect, the form isn't working l no error message when i press submit
– jibin george
Jun 14 at 12:50
I have tried this now but no result same as before
– jibin george
Jun 14 at 11:52
I have tried this now but no result same as before
– jibin george
Jun 14 at 11:52
Do you get redirected to controller page or not?
– Khushbu
Jun 14 at 12:38
Do you get redirected to controller page or not?
– Khushbu
Jun 14 at 12:38
i dont have no redirect, the form isn't working l no error message when i press submit
– jibin george
Jun 14 at 12:50
i dont have no redirect, the form isn't working l no error message when i press submit
– jibin george
Jun 14 at 12:50
add a comment |
i have tried creating controller. but no result this is the form i have created even if i click submit i am not even getting no error message. @ Khushbu
add a comment |
i have tried creating controller. but no result this is the form i have created even if i click submit i am not even getting no error message. @ Khushbu
add a comment |
i have tried creating controller. but no result this is the form i have created even if i click submit i am not even getting no error message. @ Khushbu
i have tried creating controller. but no result this is the form i have created even if i click submit i am not even getting no error message. @ Khushbu
answered Jun 14 at 11:54
jibin georgejibin george
1469 bronze badges
1469 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f278381%2fhow-to-create-a-custom-form%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Try this block class="MagentoContactBlockContactForm" name="contactForm" template="My_Module::form.phtml". You have added ( and ) at the start and end of code.
– Sukumar Gorai
Jun 14 at 11:43
@SukumarGorai what you mean by this ("You have added ( and ) at the start and end of code.")
– jibin george
Jun 14 at 11:50
At the start of your code there is bracket "(" and end ")". Remove those.
– Sukumar Gorai
Jun 14 at 11:54
</div> block class="MagentoContactBlockContactForm" name="newContactForm" template="Limitless_HelpCenterContactForm::form.phtml"</div> </div> this si what i have i dont have the brackets()
– jibin george
Jun 14 at 11:56
the person who edited this add them brackets in
– jibin george
Jun 14 at 11:56