Skip to content

Commit 9d13792

Browse files
authored
Merge pull request #7388 from umbraco/forms/configs
Update details on using conditions with Forms DatePicker
2 parents 13985c1 + 80c6654 commit 9d13792

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,21 @@ 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+
To use less-than or greater-than conditions on dates, you must change the date format.
65+
66+
By default, date is shown like `September 5, 2025`. This needs to change to a format only containing numbers: `09/05/2025`.
67+
68+
To change the default format setting for dates, follow the steps below:
69+
70+
1. Open the `appSettings.json` file.
71+
2. Change the `DatePickerFormat` value to `L` (the default is `LL`):
72+
73+
```json
74+
"Forms": {
75+
"FieldTypes": {
76+
"DatePicker": {
77+
"DatePickerFormat": "L"
78+
}
79+
}
80+
}
81+
```

0 commit comments

Comments
 (0)