Winter CMS resources and help articles

Simple and to the point. Optimized by the community.

Prevent keyboard popup on mobile for Datepicker formwidget

0
by mjauvin, last modified on April 23rd, 2023

On mobile, when the DatePicker formwidget opens, you don't want the keyboard to popup.

In order to prevent this behavior, just add the following attribute to your form field definition:

date:
    type: datepicker
    attributes:
      inputmode: none

Discussion

0 comments

We use cookies to measure the performance of this website. Do you want to accept these cookies?