4

How do you remove the localised/fixed dropdown on the date fieldtype?

enter image description here

6

I don't think that's possible. Instead, use the FieldType DropDate instead. It's free and very well done.

| improve this answer | |
  • DropDate is no longer supported. – Josh Conner Mar 30 '16 at 12:17
4

If you want to stick with the EE date fieldtype and not display the localized/fixed select then you could use jQuery. To hide them across the board,

$('.hasDatepicker').next('select').hide();

will do the trick.

CP CSS & JS gives a quick way to add JS to the control panel.

| improve this answer | |
0

Using CSS to hide the elements also works if you are using it in a SAEF form.

#cform .choice {display:none;}
| improve this answer | |
-4

**Not advised to change core ** but you may comment out the below line at to hide it:

system/fieldtypes/date/ft.date.php

LINE 249

$r .= form_dropdown($date_local, $localized_opts, $localized, 'dir="'.$text_direction.'"');

TO

// $r .= form_dropdown($date_local, $localized_opts, $localized, 'dir="'.$text_direction.'"');

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.