Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

iscromanpc's avatar

Date field (Form::date) not showing value on mobile version

Hello Goodnight.

I have a problem, when viewing my site in my mobile browser, the value for the next field is not rendered. On the computer works well and shows "11/06/1990".

{{Form :: date (('license_expiration'), Carbon :: createFromFormat ('d / m / Y', '11 / 06/1990 '))}}

The field appears empty in the mobile view however the value is there even if it is not visible. If I send the form, it sent "11/06/1990" even if it is not rendered.

What could be happening?

Thank you.

0 likes
2 replies
tisuchi's avatar

Since you are talking about mobile version, does it somehow related about responsiveness?

Instead of rending something from database, why not you hardcode something there and check in mobile. If not showing, surely its a issue of responsive template.

3 likes
iscromanpc's avatar

Hardcode a date does not work in this cases.

Finally I writted the code like this:

Using jQuery Datepicker.

Thanks for your answer @tisuchi

Please or to participate in this conversation.