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

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

Started by Muut Archive 11 years ago · 3 replies · 1035 views
11 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.

11 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 1691 9 years ago
Archive · by Muut Archive, 9 years ago
2 1134 9 years ago
Archive · by Muut Archive, 9 years ago
2 4298 9 years ago
Archive · by Muut Archive, 9 years ago
1 3181 9 years ago
Archive · by Muut Archive, 9 years ago
3 1293 9 years ago