Skip to content

Commit 8142ba4

Browse files
committed
Added details of date format configuration.
1 parent 0dfdfc2 commit 8142ba4

File tree

5 files changed

+37
-3
lines changed

5 files changed

+37
-3
lines changed

13/umbraco-forms/developer/configuration/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ For illustration purposes, the following structure represents the full set of op
110110
},
111111
"FieldTypes": {
112112
"DatePicker": {
113-
"DatePickerYearRange": 10
113+
"DatePickerYearRange": 10,
114+
"DatePickerFormat": "LL",
115+
"DatePickerFormatForValidation": ""
114116
},
115117
"Recaptcha2": {
116118
"PublicKey": "",
@@ -518,6 +520,14 @@ For more information, see the [Headless/AJAX Forms](../ajaxforms.md) article.
518520

519521
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.
520522

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, in order that server-side validation will match the expected format of the entry.
530+
521531
### reCAPTCHA v2 field type configuration
522532

523533
#### PublicKey & PrivateKey

13/umbraco-forms/release-notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ These can be options are enabled and configured on a per-form basis by editors i
2727

2828
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).
2929

30+
The format for the date field can now be provided in configuration [#1276](https://github.com/umbraco/Umbraco.Forms.Issues/issues/1276).
31+
3032
To allow finer control over editor permissions, we've introduced a "delete entries" setting available on 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).
3133

3234
Other bug fixes included in the release:

14/umbraco-forms/developer/configuration/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ For illustration purposes, the following structure represents the full set of op
110110
},
111111
"FieldTypes": {
112112
"DatePicker": {
113-
"DatePickerYearRange": 10
113+
"DatePickerYearRange": 10,
114+
"DatePickerFormat": "LL",
115+
"DatePickerFormatForValidation": ""
114116
},
115117
"Recaptcha2": {
116118
"PublicKey": "",
@@ -515,6 +517,14 @@ For more information, see the [Headless/AJAX Forms](../ajaxforms.md) article.
515517

516518
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.
517519

520+
#### DatePickerFormat
521+
522+
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.
523+
524+
#### DatePickerFormatForValidation
525+
526+
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, in order that server-side validation will match the expected format of the entry.
527+
518528
### reCAPTCHA v2 field type configuration
519529

520530
#### PublicKey & PrivateKey

14/umbraco-forms/release-notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ A second "form details picker" is also available, allowing editors the option of
3232

3333
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).
3434

35+
The format for the date field can now be provided in configuration [#1276](https://github.com/umbraco/Umbraco.Forms.Issues/issues/1276).
36+
3537
To allow finer control over editor permissions, we've introduced a "delete entries" setting available on 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).
3638

3739
Finally thanks to a kind contribution from [Erik-Jan Westendorp](https://github.com/erikjanwestendorp) the backoffice is now translated into Dutch [#1264](https://github.com/umbraco/Umbraco.Forms.Issues/issues/1264).

15/umbraco-forms/developer/configuration/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ For illustration purposes, the following structure represents the full set of op
110110
},
111111
"FieldTypes": {
112112
"DatePicker": {
113-
"DatePickerYearRange": 10
113+
"DatePickerYearRange": 10,
114+
"DatePickerFormat": "LL",
115+
"DatePickerFormatForValidation": ""
114116
},
115117
"Recaptcha2": {
116118
"PublicKey": "",
@@ -513,6 +515,14 @@ For more information, see the [Headless/AJAX Forms](../ajaxforms.md) article.
513515

514516
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.
515517

518+
#### DatePickerFormat
519+
520+
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.
521+
522+
#### DatePickerFormatForValidation
523+
524+
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, in order that server-side validation will match the expected format of the entry.
525+
516526
### reCAPTCHA v2 field type configuration
517527

518528
#### PublicKey & PrivateKey

0 commit comments

Comments
 (0)