From 35516817d2aaf9778ce0d61f8bed8a16361a48c0 Mon Sep 17 00:00:00 2001 From: Sofie Toft Date: Tue, 9 Sep 2025 18:02:56 +0200 Subject: [PATCH 1/4] Changes --- .../creating-a-form/conditional-logic.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/16/umbraco-forms/editor/creating-a-form/conditional-logic.md b/16/umbraco-forms/editor/creating-a-form/conditional-logic.md index 4ee8c8c0511..6db0358a56b 100644 --- a/16/umbraco-forms/editor/creating-a-form/conditional-logic.md +++ b/16/umbraco-forms/editor/creating-a-form/conditional-logic.md @@ -61,4 +61,20 @@ When applying a condition to a page, effectively you are controlling the display ## Conditions for Dates -You can apply conditions to dates as well as strings. When you use the date picker field, you can set a condition if a submitted date is greater/less than a specific date. +In order to use less than and greater than conditions on dates, you must first change the date format. + +1. Open the `appSettings.json` file. +2. Add the following, below the CMS section within the Umbraco section. + +´´´json +"Forms": { + "FieldTypes": { + "DatePicker": { + "DatePickerFormat": "L" + } + } +} +´´´ +You can apply conditions to dates as well as strings. + +When you use the date picker field, you can set a condition if a submitted date is greater/less than a specific date. From ef1b169195ee87f7b7274a4c7c210476ee66f443 Mon Sep 17 00:00:00 2001 From: Sofie Toft Date: Tue, 9 Sep 2025 18:09:32 +0200 Subject: [PATCH 2/4] Update date format config info --- .../editor/creating-a-form/conditional-logic.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/16/umbraco-forms/editor/creating-a-form/conditional-logic.md b/16/umbraco-forms/editor/creating-a-form/conditional-logic.md index 6db0358a56b..c8862b8cc2f 100644 --- a/16/umbraco-forms/editor/creating-a-form/conditional-logic.md +++ b/16/umbraco-forms/editor/creating-a-form/conditional-logic.md @@ -61,10 +61,14 @@ When applying a condition to a page, effectively you are controlling the display ## Conditions for Dates -In order to use less than and greater than conditions on dates, you must first change the date format. +In order to use less than and greater than conditions on dates, you must change the date format. + +By default, date is shown like `September 5, 2025`. This needs to change to a format only containing numbers: `09/05/2025`. + +To change the default format setting for dates, follow the steps below: 1. Open the `appSettings.json` file. -2. Add the following, below the CMS section within the Umbraco section. +2. Change the `DatePickerFormat` value to `L` (the default is `LL`): ´´´json "Forms": { @@ -75,6 +79,3 @@ In order to use less than and greater than conditions on dates, you must first c } } ´´´ -You can apply conditions to dates as well as strings. - -When you use the date picker field, you can set a condition if a submitted date is greater/less than a specific date. From 014a892ca45fd644b4bc18d52c28627384650987 Mon Sep 17 00:00:00 2001 From: sofietoft Date: Wed, 10 Sep 2025 10:22:32 +0200 Subject: [PATCH 3/4] Update 16/umbraco-forms/editor/creating-a-form/conditional-logic.md Co-authored-by: Esha Noronha <82437098+eshanrnh@users.noreply.github.com> --- 16/umbraco-forms/editor/creating-a-form/conditional-logic.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/16/umbraco-forms/editor/creating-a-form/conditional-logic.md b/16/umbraco-forms/editor/creating-a-form/conditional-logic.md index c8862b8cc2f..b9fa6735096 100644 --- a/16/umbraco-forms/editor/creating-a-form/conditional-logic.md +++ b/16/umbraco-forms/editor/creating-a-form/conditional-logic.md @@ -61,7 +61,7 @@ When applying a condition to a page, effectively you are controlling the display ## Conditions for Dates -In order to use less than and greater than conditions on dates, you must change the date format. +To use less-than or greater-than conditions on dates, you must change the date format. By default, date is shown like `September 5, 2025`. This needs to change to a format only containing numbers: `09/05/2025`. From 80c66547d67f43f03c2d4a59713fabcdbd4b8411 Mon Sep 17 00:00:00 2001 From: Sofie Toft Date: Wed, 10 Sep 2025 10:23:59 +0200 Subject: [PATCH 4/4] Fix backtics --- 16/umbraco-forms/editor/creating-a-form/conditional-logic.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/16/umbraco-forms/editor/creating-a-form/conditional-logic.md b/16/umbraco-forms/editor/creating-a-form/conditional-logic.md index b9fa6735096..c73720e5929 100644 --- a/16/umbraco-forms/editor/creating-a-form/conditional-logic.md +++ b/16/umbraco-forms/editor/creating-a-form/conditional-logic.md @@ -70,7 +70,7 @@ To change the default format setting for dates, follow the steps below: 1. Open the `appSettings.json` file. 2. Change the `DatePickerFormat` value to `L` (the default is `LL`): -´´´json +```json "Forms": { "FieldTypes": { "DatePicker": { @@ -78,4 +78,4 @@ To change the default format setting for dates, follow the steps below: } } } -´´´ +```