New answers tagged

0 votes

Date popup in exposed filter

Drupal 9/10 I Just did a normal exposed filter (for a timestamp / date) field Selected between dates left all defaults blank then added (in a module) /** * Implements hook_form_ID_alter(). */ ...
taggartJ's user avatar
  • 2,087
1 vote
Accepted

How do I change the input type created by views daterange filter?

This hook_preprocess_input__textfield() hook can be use: to convert field type from text to datetime-local function Mymodulename_preprocess_input__textfield(&$vars) { $view_id = \Drupal::...
mini's user avatar
  • 682
0 votes

How do I change the input type created by views daterange filter?

To make the daterange filter create an input of type "datetime-local" instead of "text", you'll need to modify the template that is being used to render the filter. In your case, ...
Pavel A.'s user avatar
  • 133

Top 50 recent answers are included