CS-Forms | Invalid date format

After a while, I’m back to CS Forms.
But I’m still struggling to understand why I always get “Invalid date format” with my range datepicker! :pensive:

These are my settings:


Hello @xoa,

Thanks for writing in! I copied your Date Picker settings and I could not replicate the issue.

We would be happy to double check your site if we can log in. You can create a secure note in your next reply with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
– Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

image

Best Regards.

@ruenel

I attached the secure note.

Hey @xoa,

This looks like a bug in Pro. Please try adding the following code in your Page JS

if (window.flatpickr) {
  // Forces all locales to use the " to " range separator
  window.flatpickr.l10ns.default.rangeSeparator = ' to ';
}

If that doesn’t work, try this:

window.csGlobal.csHooks.filter('cornerstone-form-datepicker-args', function(args) {
  if (args.locale) {
    args.locale.rangeSeparator = ' to ';
  }
  return args;
});

Please let us know if any of that works and we’ll report this to our development team.

Thanks.

@christian

Thank you. I tried both code snippets in my Page JS, but unfortunately none of these work.

Using a different locale then English for the date range is not going to validate properly right now. I will release an update for this later this week. In the meantime I can only suggest you use English as the locale if using the range feature. I can update this thread when I make the update. Have a great day.

I switch to English for now. Please let me know if you have found a fix for this. Thanks.

EDIT:

In the meantime could you also please take a look at

  1. Why does it take so long to validate the form? Roughly over 10 seconds and there is no “progress indicator” which tells the user, that it is indeed validating or loading.

  2. Why the Lottie it not shown in the success message and the hero image disappears?

Thank you very much.