I have an external html form that I would like to add to my wordpress developed site.
The form links to other areas in the business like the cashiers, so when customers fill the form out, the content is added to their system.
I have seen different ways such as adding raw html and adding as media however these do not allow me to edit the form as the visual composer stops working after I paste in the html code.
What other options do I have if any.
I have an external html form that I would like to add to my wordpress developed site.
The form links to other areas in the business like the cashiers, so when customers fill the form out, the content is added to their system.
I have seen different ways such as adding raw html and adding as media however these do not allow me to edit the form as the visual composer stops working after I paste in the html code.
What other options do I have if any.
If you want to have a form on a page, there are plugins that allow that; a popular one is "Contact Form 7". But if you want a specific 'action' page to fire when the submit button is used, then it might be best to create a page template.
The template could include the form code and the 'action' of the form tag could call another page (and template) that would process the form then display a page.
Learn more about templates here: https://codex.wordpress/Templates .
And it would be best to put the templates in a Child Theme (if you aren't using your own custom theme), so any theme updates don't overwrite your changes. (Although custom-written templates aren't overwritten on the theme update, unless you have changed a theme-supplied template.)
I figured out that you can not directly have a html form display correctly on a page. To work around this, I added the html document to the media and then linked directly to this using the generated hyperlink.