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;








3















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



enter image description here



enter image description here










share|improve this question
























  • 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

















3















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



enter image description here



enter image description here










share|improve this question
























  • 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













3












3








3








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



enter image description here



enter image description here










share|improve this question
















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



enter image description here



enter image description here







forms static-block contact-us contact-form






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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










2 Answers
2






active

oldest

votes


















0














  1. You should create controller as explained in
    Create controller

  2. Give link of that controller in your form action.

  3. In controller execute() method you can get posted data as below:

$data=$this->getRequest()->getParam('inputname');


  1. Do required processing with received data.





share|improve this answer























  • 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


















0














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
enter image description here






share|improve this answer

























    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
    );



    );













    draft saved

    draft discarded


















    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









    0














    1. You should create controller as explained in
      Create controller

    2. Give link of that controller in your form action.

    3. In controller execute() method you can get posted data as below:

    $data=$this->getRequest()->getParam('inputname');


    1. Do required processing with received data.





    share|improve this answer























    • 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















    0














    1. You should create controller as explained in
      Create controller

    2. Give link of that controller in your form action.

    3. In controller execute() method you can get posted data as below:

    $data=$this->getRequest()->getParam('inputname');


    1. Do required processing with received data.





    share|improve this answer























    • 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













    0












    0








    0







    1. You should create controller as explained in
      Create controller

    2. Give link of that controller in your form action.

    3. In controller execute() method you can get posted data as below:

    $data=$this->getRequest()->getParam('inputname');


    1. Do required processing with received data.





    share|improve this answer













    1. You should create controller as explained in
      Create controller

    2. Give link of that controller in your form action.

    3. In controller execute() method you can get posted data as below:

    $data=$this->getRequest()->getParam('inputname');


    1. Do required processing with received data.






    share|improve this answer












    share|improve this answer



    share|improve this answer










    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

















    • 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













    0














    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
    enter image description here






    share|improve this answer



























      0














      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
      enter image description here






      share|improve this answer

























        0












        0








        0







        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
        enter image description here






        share|improve this answer













        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
        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 14 at 11:54









        jibin georgejibin george

        1469 bronze badges




        1469 bronze badges



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form