BS5 form date picker not sending value?

How do I get the Date component working?

I have a BS5 page with a form in a modal.
The form contains a text input element with enabled a date picker type.
The type I set to ‘date’
In the website this works, at least you are able to select a date by selecting on the agenda icon in the input field.

Problem is that no value is being posted by the form.

When I set the type to ‘text’
In the website you are not able to pick a date.
You have to manually add text to the field.
The value is being posted by the form.

It feels like there is a bug? BS5 issue? Or I am doing something wrong which is a bigger possibility

So how can I have the web visitor to be able to select the date which is being posted by the form?

Why are you not using the date picker component for this?

@Teodor I am using the date picker component.

Ah sorry the screenshot did not load here.
The input type should be left intact - type="text"

Do you see any errors in the browser console?

When I set the type to text, you cannot select a date on the page

So:

I do notice these warnings on the page… don’t know if they are related
Everything else is working …

see image:

No, these are not related. Do you have a link to your page where i can test that?

Oeps found an error:

I did convert this page from a BS4 to BS5 page

So the problem is the moment framework is missing from your page.

Moment was enabled on the page. I tried to use local, but didn’t help.

The error is complaining about jquery, but BS5 does not need/use jquery

The datepicker component requires jquery!

Okay, I need to add Moment to the layout page for it to work!

Now there is a popup tot select the date! :grin:

Thanks @Teodor!