|
1 | 1 | --- |
2 | | -description: Form Builder enables creating dynamic forms to use in surveys, questionnaires, sign-up forms and others. |
| 2 | +description: Forms are a type of content item that you can use to improve the functionality of your website. |
3 | 3 | edition: experience |
| 4 | +page_type: landing_page |
4 | 5 | --- |
5 | 6 |
|
6 | 7 | # Forms |
7 | 8 |
|
8 | | -You can build forms consisting of different fields in the Form Builder. |
| 9 | +Forms are a type of content item that you can use to improve the functionality of your website. |
9 | 10 |
|
10 | | -!!! tip |
11 | | - |
12 | | - To learn how to get, create, and delete form submissions by using the PHP API, |
13 | | - see [Form API](form_api.md). |
14 | | - |
15 | | -[[% include 'snippets/forms_caution.md' %]] |
16 | | - |
17 | | -## Existing Form fields |
18 | | - |
19 | | -### Captcha field |
20 | | - |
21 | | -The Captcha Form field is based on [Gregwar/CaptchaBundle](https://github.com/Gregwar/CaptchaBundle). |
22 | | - |
23 | | - |
24 | | - |
25 | | -You can customize the field by adding configuration to `config/packages/gregwar_captcha.yaml` under `gregwar_captcha`: |
26 | | - |
27 | | -``` yaml |
28 | | -gregwar_captcha: |
29 | | - as_url: true |
30 | | - width: 150 |
31 | | - invalid_message: Code does not match, please retry. |
32 | | - reload: true |
33 | | -``` |
34 | | -
|
35 | | -The example configuration above resizes the Captcha image (line 3), changes the error message (line 4), |
36 | | -and enables the user to reload the code (line 5). |
37 | | -
|
38 | | - |
39 | | -
|
40 | | -For information about available options, see [Gregwar/CaptchaBundle's documentation](https://github.com/Gregwar/CaptchaBundle#options). |
41 | | -
|
42 | | -!!! note |
43 | | -
|
44 | | - 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](reverse_proxy.md#ensure-proper-captcha-behavior). |
45 | | -
|
46 | | -## Form submission purging |
47 | | -
|
48 | | -You can purge all submissions of a given form. |
49 | | -To do this, run the following command, where `form-id` stands for Content ID |
50 | | -of the form for which you want to purge data: |
51 | | - |
52 | | -```bash |
53 | | -php bin/console ibexa:form-builder:purge-form-submissions [options] [--] <form-id> |
54 | | -``` |
55 | | - |
56 | | -The following table lists some of the available options and their meaning: |
57 | | - |
58 | | -| Switch | Option | Description | |
59 | | -|--------------|------------|------------| |
60 | | -| `-l` | `--language-code=LANGUAGE-CODE` | Passes a language code, for example, "eng-GB". | |
61 | | -| `-u` | `--user[=USER]` | Passes a repository username. By default it is "admin". | |
62 | | -| `-c` | `--batch-size[=BATCH-SIZE]` | Passes a number of URLs to check in a single iteration. Set it to avoid using too much memory. By default it is set to 50. | |
63 | | -| | `--siteaccess[=SITEACCESS]` | Passes a SiteAccess to use for operations. If not provided, the default SiteAccess is used. | |
64 | | - |
65 | | -## Form-uploaded files |
66 | | - |
67 | | -You can use Forms to enable the user to upload files. |
68 | | -The default Location for files uploaded in this way is `/Media/Files/Form Uploads`. |
69 | | -You can change it with the following configuration: |
70 | | - |
71 | | -``` yaml |
72 | | -ibexa: |
73 | | - system: |
74 | | - default: |
75 | | - form_builder: |
76 | | - upload_location_id: 54 |
77 | | -``` |
78 | | - |
79 | | -This applies only if no specific Location is defined in the Form itself. |
| 11 | +[[= cards([ |
| 12 | + "content_management/forms/form_builder_guide", |
| 13 | + "content_management/forms/work_with_forms", |
| 14 | + "content_management/forms/form_api", |
| 15 | + "content_management/forms/create_form_attribute", |
| 16 | + "content_management/forms/create_custom_form_field", |
| 17 | + "content_management/forms/customize_email_notifications" |
| 18 | +], columns=3) =]] |
0 commit comments