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
Datepicker - stop popup calendar from opening
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.
August 3, 2018 at 6:23 am
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/
August 5, 2018 at 1:53 am
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?
August 5, 2018 at 5:37 pm
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.