Actually, I want to add contact us form and functionality programmatically in Magento 2 custom theme in frontend.
0
In Homepage or any block or cms page just add below shortcode for getting contact us form.
{{block class="Magento\Contact\Block\ContactForm" name="contactForm" template="Magento_Contact::form.phtml"}}
-
-
please refer below link for creating custom form in front end, magento.stackexchange.com/questions/198838/… – suresh-vagvala Oct 8 '18 at 14:40
Admin
or` Frontend` ? – Chirag Patel Oct 8 '18 at 13:43