Forms¶
You can build forms consisting of different fields in the Form Builder.
Tip
To learn how to get, create, and delete form submissions by using the PHP API, see Managing forms.
Known limitation
To have multiple instances of the same form on one page, create several identical form blocks. Otherwise, you may encounter issues with submitting data from all forms at the same time.
Existing Form fields¶
Captcha field¶
The Captcha Form field is based on Gregwar/CaptchaBundle.
You can customize the field by adding configuration to config/packages/gregwar_captcha.yaml
under gregwar_captcha
:
1 2 3 4 5 |
|
The example configuration above resizes the Captcha image (line 3), changes the error message (line 4), and enables the user to reload the code (line 5).
For information about available options, see Gregwar/CaptchaBundle's documentation.
Note
If your installation uses Varnish to manage content cache, you must modify the configuration to avoid issues with the Captcha field. For more information, see Ensure proper captcha behavior.