Skip to content

Commit 55481c7

Browse files
authored
Merge pull request umbraco#3488 from umbraco/Updating-v9Filenames
Prepping v9 release articles
2 parents 64180eb + d0cde2b commit 55481c7

File tree

213 files changed

+4995
-4965
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+4995
-4965
lines changed
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
---
2+
versionFrom: 7.0.0
3+
meta.Title: "Umbraco Forms configuration"
4+
meta.Description: "In Umbraco Forms it's possible to customize the functionality with various configuration values."
5+
---
6+
7+
# Configuration
8+
With Umbraco Forms it's possible to customize the functionality with various configuration values.
9+
10+
## Editing configuration values
11+
The configuration for Umbraco Forms can be changed by modifying the XML based config file found at `/App_Plugins/UmbracoForms/UmbracoForms.config`
12+
13+
### UploadStorageDirectory
14+
This is *legacy and is no longer in use* - Forms that use an upload field will use the same IFileSystem as the [media section](../IFileSystem/#forms-containing-upload-fields)
15+
16+
### IgnoreWorkFlowsOnEdit
17+
This configuration expects `True` or `False` and allows you to toggle if a form submission is edited again, that the workflows on the form will re-fire after an update to the form submission. This is used in conjunction with the `AllowEditableFormSubmissions` configuration value.
18+
19+
### ExecuteWorkflowAsync
20+
This configuration key is *experimental* and will allow Workflows to be executed in an async manner<br/>
21+
The value can be `True/False` or a list of form names that ignore workflows that are comma separated `form name,contact form`
22+
23+
### DisableFormCaching
24+
This configuration value expects a `True/False` value and can be used to toggle if Forms should be read from the JSON representation on disk or from the relevant Forms IFileSystem. Forms are cached for 10 minutes.
25+
26+
### DisableDefaultWorkflow
27+
This configuration value expects a `True/False` value and can be used to toggle if new forms that are created adds an email workflow to send the result of the form to the current user who created the form.
28+
29+
### DisableAutomaticAdditionOfDataConsentField
30+
This configuration value expects a `True/False` value and can be used to disable the feature where all new forms are provided with a default "Consent for storing submitted data" field on creation.
31+
32+
### AllowEditableFormSubmissions
33+
This configuration value expects a `True/False` value and can be used to toggle the functionality to allow a form submission to be editable and re-submitted. When the value is set to `True` it allows Form Submissions to be edited using the following querystring for the page containing the form on the site. `?recordId=GUID` Replace `GUID` with the GUID of the form submission.
34+
35+
:::warning
36+
Enable this feature ONLY if you do understand the security implications.
37+
:::
38+
39+
### RecaptchaPublicKey & RecaptchaPrivateKey
40+
Both of these configuration values are needed in order to use the "*Recaptcha2*" field type implementing legacy ReCaptcha V2 from Google. You can obtain both of these values after signing up to create a ReCaptcha key here - https://www.google.com/recaptcha/admin
41+
42+
Google has renamed these recently and the `Site Key` refers to `RecaptchaPublicKey` and `Secret Key` is to be used for `RecaptchaPrivateKey`
43+
44+
### RecaptchaV3SiteKey & RecaptchaV3PrivateKey
45+
Both of these configuration values are needed in order to use the "*reCAPTCHA V3 with Score*" field type implementing ReCaptcha V3 from Google. This field type is available in Umbraco Forms from v8.7+.
46+
47+
You can obtain both of these values after signing up to create a ReCaptcha key here: https://www.google.com/recaptcha/admin.
48+
49+
### DatePickerYearRange
50+
This setting is used to configure the Date Picker form field range of years that is available in the date picker. By default this is a small range of 10 years.
51+
52+
### EnableAntiForgeryToken
53+
This setting needs to be a `True` or `False` value and will enable the ASP.NET Anti Forgery Token and we recommend that you enable this and set this to `True`. Due to older versions of Umbraco Forms not containing this, it has become an optional config setting and due to upgrade reasons we do not automatically set this to `True` for you.
54+
55+
If you do set this to `True` then you need to add `@Html.AntiForgeryToken()` to your forms. The default template for Forms can be found in `~/Views/Partials/Forms/Form.cshtml` and should have `@Html.AntiForgeryToken()` in the `@using (Html.BeginUmbracoForm [...]` block.
56+
57+
### StoreUmbracoFormsInDb
58+
This setting needs to be set to `True` if you want your Forms data to be stored in the database instead of the .json files in the `App_Data/UmbracoForms` directory in the file system.
59+
60+
For more information on this, read the [Forms in the Database](../Forms-in-the-Database) article.
61+
62+
### UseLegacyPageService
63+
In Umbraco Forms 8.7 an update was made to improve the performance of the service responsible for retrieving the content of the Umbraco page where a form is hosted. This service is used to populate the string placeholders - or "magic strings" - with the values of properties from the page.
64+
65+
By setting the value of the `UseLegacyPageService` to `True` the old service can be reinstated.
66+
67+
### DisallowedFileUploadExtensions
68+
When using the File Upload field in a form, editors can choose which file extensions they want to accept. When an image is expected, they can for example specify that only `.jpg` or `.png` files are uploaded.
69+
70+
There are certain file extensions that in almost all cases should never be allowed, which are held in this configuration value. This means that even if an editor has selected to allow all files, any files that match the extensions listed here will be blocked.
71+
72+
By default, .NET related code files like `.config` and `.aspx` are included in this deny list. You can add or - if you are sure - remove values from this list to meet your needs.
73+
74+
### MaxNumberOfColumnsInFormGroup
75+
Added in 8.7.0, this setting controls the maximum number of columns that can be created by editors when they configure groups within a form. The default value used if the setting value is not provided is 12.
76+
77+
### DefaultTheme
78+
Added in 8.8.0, this setting allows you to configure the name of the theme to use when an editor has not specifically selected one for a form. If empty or missing, the default value of "default" is used. If a custom default theme is configured, it will be used for rendering forms where the requested file exists, and where not, will fall back to the out of the box default theme.
79+
80+
## Default Settings
81+
There are several configuration keys that start with `Default`. This allows you to configure the values for when a new form is created.
82+
83+
### DefaultManualApproval
84+
This setting needs to be a `True` or `False` value and will allow you to toggle if a form allows submissions to be post moderated. Most use cases are for publicly shown entries such as blog post comments or submissions for a social campaign.
85+
86+
### DefaultDisableStylesheet
87+
This setting needs to be a `True` or `False` value and will allow you to toggle if the form will include some default styling with the Umbraco Forms CSS stylesheet.
88+
89+
### DefaultMarkFieldsIndicator
90+
This setting can have the following values to allow you to toggle the mode of marking mandatory or optional fields
91+
* `NoIndicator`
92+
* `MarkMandatoryFields`
93+
* `MarkOptionalFields`
94+
95+
### DefaultIndicator
96+
This setting is used to mark the mandatory or optional fields based on the setting above. By default this is an asterisk `*`
97+
98+
### DefaultRequiredErrorMessage
99+
This allows you to configure the required error validation message. By default this is `Please provide a value for {0}` where the `{0}` is used to replace the name of the field that is required.
100+
101+
### DefaultInvalidErrorMessage
102+
This allows you to configure the invalid error validation message. By default this is `Please provide a valid value for {0}` where the `{0}` is used to replace the name of the field that is invalid.
103+
104+
### DefaultShowValidationSummary
105+
This setting needs to be a `True` or `False` value and will allow you to toggle if the form will display all form validation error messages in a validation summary together.
106+
107+
### DefaultHideFieldValidationLabels
108+
This setting needs to be a `True` or `False` value and will allow you to toggle if the form will show inline validation error messages next to the form field that is invalid.
109+
110+
### DefaultMessageOnSubmit
111+
This allows you to configure what text is displayed when a form is submitted and is not being redirected to a different content node.
112+
113+
### DefaultStoreRecordsLocally
114+
This setting needs to be a `True` or `False` value and will allow you to toggle if form submission data will be stored in the Umbraco Forms database tables. By default this is set to `True`.
115+
116+
### DefaultAutocompleteAttribute
117+
118+
Added in 8.8.0, this setting provides a value to be used for the `autocomplete` attribute for newly created forms. By default the value is empty, but can be set to `on` or `off` to have that value applied as the attribute value used when rendering the form.

Add-ons/UmbracoForms/Developer/Configuration/index-v9.md

Lines changed: 0 additions & 215 deletions
This file was deleted.

0 commit comments

Comments
 (0)