Skip to content

Commit 3551681

Browse files
committed
Changes
1 parent f873ab6 commit 3551681

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

16/umbraco-forms/editor/creating-a-form/conditional-logic.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,20 @@ When applying a condition to a page, effectively you are controlling the display
6161

6262
## Conditions for Dates
6363

64-
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.
64+
In order to use less than and greater than conditions on dates, you must first change the date format.
65+
66+
1. Open the `appSettings.json` file.
67+
2. Add the following, below the CMS section within the Umbraco section.
68+
69+
´´´json
70+
"Forms": {
71+
"FieldTypes": {
72+
"DatePicker": {
73+
"DatePickerFormat": "L"
74+
}
75+
}
76+
}
77+
´´´
78+
You can apply conditions to dates as well as strings.
79+
80+
When you use the date picker field, you can set a condition if a submitted date is greater/less than a specific date.

0 commit comments

Comments
 (0)