The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

Datepicker - stop popup calendar from opening

Labels

This Discussion is public

Notifications

I use the date field but do not want the calendar to open i.e. just want the user to manually enter inline dd/mm/yyyy

Is there a bit of code I can use to do this?

Thanks for any ideas.

Don't use the date field. Put in a single line text field and apply formatting of "xx/xx/xxxx".

https://formidableforms.com/knowledgebase/format/

Hi Bobby

Thank you for trying to help. Unfortunately I need it to be a date field because I use that data in a math floor to calculate an age as at a certain cut off date.

Is there any other solution do you think?

How about this:

https://formidableforms.com/knowledgebase/frm_field_classes/#kb-disable-datepicker-on-mobile

Since we aren't targeting mobile, this should work:

add_filter( 'frm_field_classes', 'frm_remove_date_field_class', 30, 2 ); function frm_remove_date_field_class( $class, $field ) { if ( $field['type'] == 'date' ) { $class = str_replace(' frm_date', '', $class ); } return $class; }

Discussion closed.