Meta Box
Support › MB Frontend Submission › Datetime picker headResolved
Hi
Do you know why my datetime pick head not like your sample?
Yours https://docs.metabox.io/fields/datetime/
Mine is just like two dropdown selector for Y and M?
Hi,
Can you please share some screenshots of the datetime picker on your side? And the code that creates the field.
datetime
You can change the display of datetime picker by using the setting js_options. Get more details on the documentation https://docs.metabox.io/fields/datetime/#settings
js_options
Like this (removed)
The default settings changeMonth and changeYear are set to true. You can change them to false by using the code
changeMonth
changeYear
true
false
'fields' => [ [ 'name' => __( 'Date', 'your-text-domain' ), 'id' => $prefix . 'date_90l222y2yyt', 'type' => 'datetime', 'js_options' => [ 'changeMonth' => false, 'changeYear' => false, ], ], ],
Or Date Picker Options in the Builder https://share.getcloudapp.com/L1uBmwDw
Get more details here https://api.jqueryui.com/datepicker/#option-changeMonth
Hi thank you it works
could you help me to remove the image url? thank you
It is removed.
Let me know if you have any questions.