MachForm Shortcode
MachForms is an excellent, easy to use form builder that you host on your own server or site. Embedding one of those forms in WordPress used to mean “jumping through some hoops”. Not any more. Add a form with the MachForm block in the block editor (Gutenberg): insert the block, type your form’s ID,
About this tool.
MachForms is an excellent, easy to use form builder that you host on your own server or site. Embedding one of those forms in WordPress used to mean “jumping through some hoops”. Not any more.
Add a form with the MachForm block in the block editor (Gutenberg): insert the block, type your form’s ID, and you are done. Prefer shortcodes, or working in the classic editor or a page builder? The [machform] shortcode does exactly the same job and both produce identical markup. Need a form in a blog post? On a page? In a widget area? No problem.
For more information, check out the plugin page on our website .
Features include:
- A MachForm block for the block editor, so you can add a form without writing a shortcode
- Support for MachForm’s modern javascript forms, with no jQuery needed
- Support for MachForm’s older jQuery based forms
- Support for iframe based forms
- Support for URL Parameters
Easy to use! This plugin isn’t just for developers, no matter what your skill level you can use this plugin to easily add forms from your MachForms system to your website!
How to use the block editor block:
- 01Click the “Code” option on your form inside of MachForm to see the embed codes, and make note of your form’s “ID” and “height”.
- 02In the block editor, add a block and search for “MachForm”.
- 03Enter your form’s ID. Height, title, embed method and URL parameters are all in the block sidebar.
- 04You are done! The form appears on the published page. The editor shows a summary card rather than a live form, so the form cannot resize itself while you are editing around it.
How to use the shortcode:
- 05Click the “Code” option on your form inside of MachForm to see the embed codes.
- 06Make note of your form’s “ID” and the “height”.
- 07Use the shortcode to embed your form into your content using this format: [machform id=(ID #) height=(height #)]
- 08You are done, your form should show in your content now!
The shortcode and the block produce exactly the same markup, so you can use whichever suits you and mix them freely.