You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -104,7 +110,9 @@ For illustration purposes, the following structure represents the full set of op
104
110
},
105
111
"FieldTypes": {
106
112
"DatePicker": {
107
-
"DatePickerYearRange": 10
113
+
"DatePickerYearRange": 10,
114
+
"DatePickerFormat": "LL",
115
+
"DatePickerFormatForValidation": ""
108
116
},
109
117
"Recaptcha2": {
110
118
"PublicKey": "",
@@ -305,6 +313,26 @@ Applies as per `DaysToRetainSubmittedRecordsFor` but for records in the 'approve
305
313
306
314
Applies as per `DaysToRetainSubmittedRecordsFor` but for records in the 'rejected' state.
307
315
316
+
### ShowPagingOnMultiPageForms
317
+
318
+
Defines whether and where paging details are displayed for multi-page forms.
319
+
320
+
### PagingDetailsFormat
321
+
322
+
Defines the paging details format for multi-page forms.
323
+
324
+
### PageCaptionFormat
325
+
326
+
Defines the page caption format for multi-page forms.
327
+
328
+
### ShowSummaryPageOnMultiPageForms
329
+
330
+
Defines whether summary pages are on by default for multi-page forms.
331
+
332
+
### SummaryLabel
333
+
334
+
Defines the default summary label for multi-page forms.
335
+
308
336
## Package options configuration
309
337
310
338
### IgnoreWorkFlowsOnEdit
@@ -420,6 +448,14 @@ To switch to this storage mechanism change the value of this setting from the de
420
448
421
449
We expect `HttpContextItems` to be the default option from Forms 14 onwards.
422
450
451
+
## EnableMultiPageFormSettings
452
+
453
+
This setting determines whether [multi-page form settings](../../editor/creating-a-form/form-settings.md#multi-page-forms) are available to editors.
454
+
455
+
By default the value is `false`. This ensures that, in an upgrade scenario, before the feature is used the necessary styling and/or theme updates can be prepared.
456
+
457
+
To make the feature available to editors set the value to `true`.
458
+
423
459
## Security configuration
424
460
425
461
### DisallowedFileUploadExtensions
@@ -484,6 +520,14 @@ For more information, see the [Headless/AJAX Forms](../ajaxforms.md) article.
484
520
485
521
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.
486
522
523
+
#### DatePickerFormat
524
+
525
+
A custom date format can be provided in [momentjs format](https://momentjscom.readthedocs.io/en/latest/moment/01-parsing/03-string-format/) if you want to override the default.
526
+
527
+
#### DatePickerFormatForValidation
528
+
529
+
If a custom date format is provided it will be used on the client-side. A matching string in [C# date format](https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings) should be provided, so that server-side validation will match the expected format of the entry.
Copy file name to clipboardExpand all lines: 13/umbraco-forms/developer/extending/adding-a-fieldtype.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,6 +106,16 @@ If working with Umbraco 9 or earlier versions, you'll find the `Views\Partials\F
106
106
107
107
ForUmbraco10andabove, we've moved to [distributing the theme as part of a Razor Class Library](../../upgrading/version-specific.md#views-and-client-side-files) so the folder won'texist. However, youcancreateitfor your custom field type. If you would like to reference the partial views of the default theme, you can download them as mentioned in the [Themes](../themes.md) article.
However, ifyouwanttoprovideacustomread-onlydisplayfor your field, you can do so by creating a second partial view. This should be named with a `.ReadOnly` suffix. For this example, you would create `FieldType.Slider.ReadOnly.cshtml`.
118
+
109
119
## Umbraco backoffice view
110
120
111
121
The final step involves building the HTML view which will be rendered in Umbraco as an example of how our end result will look:
Copy file name to clipboardExpand all lines: 13/umbraco-forms/developer/themes.md
+72Lines changed: 72 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,78 @@ Umbraco Forms conditional JavaScript logic depends on some CSS classes currently
41
41
42
42
If adding or amending client-side scripts, you need to copy the `Script.cshtml` file from the `default` themes folder. In your copy, amend the `.js` references to reference your own script files.
43
43
44
+
### Shipping Themes in a Razor Class Library
45
+
46
+
Umbraco Forms provides it's built-in themes as part of a Razor Class Library for ease of distribution. This can be useful for custom themes, particularly those used in multiple solutions or released as an Umbraco package.
47
+
48
+
From Forms 13.3 it is possible to do this for custom themes.
49
+
50
+
1. Create a new Razor Class Library project to hold the theme.
51
+
2. Create the necessary Partial Views for your theme within `Views\Partials\Forms\Themes\<my-custom-theme>`.
52
+
3. Provide the names of the files in your theme via an implementation of `ITheme`.
53
+
* For example, if only overriding a single file, your class would look like the code snippet below:
To use a theme with a Form use the "Insert Form" macro where you will be presented with the options of the form you wish to insert along with an option to pick a theme. This displays the list of theme folders found at `Views/Partials/Forms/Themes`.
Copy file name to clipboardExpand all lines: 13/umbraco-forms/editor/creating-a-form/fieldtypes/date.md
+3-16Lines changed: 3 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,28 +4,15 @@ The date picker uses a front-end library called [Pikaday](https://github.com/dbu
4
4
5
5

6
6
7
-
Pikaday date picker can be localised based on the page the Form is rendered on.
7
+
Pikaday date picker can be localized based on the page the Form is rendered on.
8
8
9
9
The date picker displays the picked date in the required locale. Using JavaScript, a hidden field is updated with a standard date format to send to the server for storing record submissions. This avoids the locale mixing up the dates.
10
10
11
11
To achieve localized date, a Razor partial view is included at `/Views/Partials/Forms/Themes/default/DatePicker.cshtml`.
12
12
13
13
The **DatePicker.cshtml** includes the `moment-with-locales.min.js` library to help with the date locale formatting and the appropriate changes to Pikaday to support the locales. If you wish to use a different DatePicker component, edit the **DatePicker.cshtml** file as per your needs.
14
14
15
-
## Configure the Year range
15
+
## Configure the date picker
16
16
17
-
The Date picker has a configuration setting to control the number of years shown in the picker. The default value is 10 years.
17
+
The Date picker has [configuration settings](../../../developer/configuration/README.md#date-picker-field-type-configuration)to control the number of years shown in the picker and the date format.
18
18
19
-
You can configure the settings in the `appSettings.json` file:
20
-
21
-
```json
22
-
"Forms": {
23
-
"FieldTypes": {
24
-
"DatePicker": {
25
-
"DatePickerYearRange": 10
26
-
}
27
-
}
28
-
}
29
-
```
30
-
31
-
Update `DatePickerYearRange` to a higher number (for example: 100) to increase the numbers of years available in the Date picker.
|**Paging display**| Select whether paging information is displayed at the top and/or bottom of the form. |
69
+
|**Paging display format**| Provide a format string for the paging details. By default `Page {0} of {1}` is used which will be replaced as, for example, `Page 1 of 4`. |
70
+
|**Page caption format**| Provide a format string for rendering the page captions. By default `Page {0}` is used which will be replaced as, for example, `Page 1`. If a caption for the page has been provided, it will be used instead. |
71
+
|**Show summary page**| Select whether a summary page is displayed at the end of multi-page forms, where a user can review their entry before submitting. |
72
+
|**Summary heading**| Provide the heading for the summary page. |
73
+
74
+
{% hint style="info" %}
75
+
These options will only be available if [the feature is configured for display](../../developer/configuration/README.md#enablemultipageformsettings).
76
+
{% endhint %}
77
+
60
78
### Moderation
61
79
62
80
Enabling this feature allows the moderator to manage the approval status of a form. This can be used in a number of scenarios. For example, if the form submission will be publicly shown, you can control which are published.
The 13.3 release of Forms contains features that can improve the user experience of completing multi-page forms.
25
+
26
+
We have added the option for [editors to choose to display paging details on the forms](./editor/creating-a-form/form-settings.md#multi-page-forms). This will allow those completing forms to get a better understanding of progress as well as see details of the pages still to be completed. [#281](https://github.com/umbraco/Umbraco.Forms.Issues/issues/281)[#648](https://github.com/umbraco/Umbraco.Forms.Issues/issues/648).
27
+
28
+
These options are enabled and configured by editors in the Forms settings section on a per-form basis. We also provide a [configuration-based toggle for the feature as a whole](./developer/configuration/README.md#enablemultipageformsettings). In this way, editors can be given access to use the feature only once the styling or theme is prepared.
29
+
30
+
##### Ship themes in Razor Class Libraries
31
+
32
+
Forms ships it's themes and email templates as part of a razor class library for ease of distribution. With this release we make that feature [available to your own custom themes and templates](./developer/themes.md#shipping-themes-in-a-razor-class-library) (or those created by package developers) [#795](https://github.com/umbraco/Umbraco.Forms.Issues/issues/795).
33
+
34
+
##### Date picker field type
35
+
36
+
We have made a couple of updates to the Date Picker field type. The format for the field can now be provided in configuration [#1276](https://github.com/umbraco/Umbraco.Forms.Issues/issues/1276). And you can now override and localize the aria-label provided for assistive technologies such as screen readers [https://github.com/umbraco/Umbraco.Forms.Issues/issues/1082](https://github.com/umbraco/Umbraco.Forms.Issues/issues/1082).
37
+
38
+
##### Finer grained entries permissions
39
+
40
+
To allow finer control over editor permissions, we have introduced a "delete entries" setting for users and user groups. Thus you can now give editors explicit permissions to view, edit, or delete entries [#1303](https://github.com/umbraco/Umbraco.Forms.Issues/issues/1303).
41
+
42
+
##### Other
43
+
44
+
Other bug fixes included in the release:
45
+
46
+
* Fix issue with single checkbox triggering a condition on a field on a subsequent page [#1304](https://github.com/umbraco/Umbraco.Forms.Issues/issues/1304).
47
+
* Improve cross-platform check when exporting to Excel.
48
+
* Fixed issue where sensitive data flag on a field could not be set for new fields added to a form [#1309](https://github.com/umbraco/Umbraco.Forms.Issues/issues/1309).
* Handled "chunked" authentication cookie in protection of file uploads saved in the media file system [#11](https://github.com/umbraco/Umbraco.Forms.Issues/issues/11#issuecomment-2376788751).
0 commit comments