To create Forms with the use of Gutenberg blocks we created our own plugin :
Starterpack Forms
. This plugin requires Advanced Custom Fields PRO to be installed.
Here are the steps to follow to handle Forms on your site :
- Activate
Starterpack Forms
WP plugin (andAdvanced Custom Fields PRO
). - Register your site in hCaptcha in order to set
WORDPRESS_HCAPTCHA_SECRET
andNEXT_PUBLIC_HCAPTCHA_KEY
variables -- otherwise the form won't send. - Set
WORDPRESS_FORMS_SECRET
variable (by default its value is equal tospck
but you can change it) - Specify the "Send to" and "Send from" emails in Forms > Settings on WP admin.
Note: On local, the emails may not be able to be sent, which will lead to a global error when submitting a form. See the Debug emails guide to test it locally.