Skip to main content
6 of 6
added 89 characters in body

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 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="Magento\Contact\Block\ContactForm" 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