Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Dateformat in form datefield? -> Validation failed: Invalid input

Started by Muut Archive 10 years ago · 3 replies · 984 views
10 years ago

Hi.

I can't find out where to set the dateformat used for validating the datefields in the form plugin.
And the validation message doesn't say what format should be used... so that's not very helpful ;)

Thanks,
Sean.

10 years ago

Not sure if this is what you mean, but we generally use the datetime field, for example in the system/blueprints/pages/default.yaml for setting date+time for pages. It has it's own custom field.

10 years ago

Hi. I'm talking about the validation format of the webform date field... somehow I can't figure out, which format is used there and how I can change it - or how I could output the correct format in the error message. Thx.

10 years ago

I think I never tried using dateformat fields. Can you paste your form md file so I have a quickstart?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1280 9 years ago
Archive · by Muut Archive, 9 years ago
2 888 9 years ago
Archive · by Muut Archive, 9 years ago
2 4016 9 years ago
Archive · by Muut Archive, 9 years ago
1 2892 9 years ago
Archive · by Muut Archive, 9 years ago
3 1076 9 years ago