mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
add ability to set date field format
This commit is contained in:
1 parent
990e4020e9
commit
e558f4d9fb
9 files changed
+178
-6
No files matched your search
@@ -261,6 +261,12 @@ export default {
|
||||
field.options = [{ value: '', uuid: v4() }]
|
||||
}
|
||||
|
||||
if (type === 'date') {
|
||||
field.preferences = {
|
||||
format: Intl.DateTimeFormat().resolvedOptions().locale.endsWith('-US') ? 'MM/DD/YYYY' : 'DD/MM/YYYY'
|
||||
}
|
||||
}
|
||||
|
||||
this.fields.push(field)
|
||||
|
||||
if (['signature', 'initials', 'cells'].includes(type)) {
|
||||
|
||||
Reference in new issue
Block a user