New answers tagged datetime
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().
*/
...
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::...
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, ...
Top 50 recent answers are included
Related Tags
datetime × 12187 × 401
views × 401
8 × 172
entities × 153
theming × 76
nodes × 70
forms × 69
javascript × 40
rules × 37
i18n-l10n × 30
webforms × 28
6 × 27
database × 26
users × 23
feeds × 14
tokens × 14
migrations × 13
commerce × 11
blocks × 10
hooks × 10
ajax × 10
emails × 10
importing-exporting × 10
9 × 9