force native datepicker display

By: Chris Tiemann | Asked: 04/25/2024
ForumsCategory: General questionsforce native datepicker display
Chris Tiemann asked 7 months ago
hello, i would like to activate the native browser view for the datepicker and not the style that formidable forms provides. does anyone have an idea how i can force the native display? I just want it to work like this in the end:
https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_type_date
Attachments
2 Answers
Victor Font answered 7 months ago
You would have to create a custom field to do what you want. If you look at the HTML source code, Formidable Pro's date field is not a date field.it is a text field that uses the jQuery date picker. When stored in the database, all fields on the form are stored as text or serialized arrays. You have two choices, create a custom field so it appears on the drag and drop field menu, or create a field in a custom HTML. The second option will not save the field to the database, so you have to transfer the content to a hidden field. The first option requires you to convert the text data in the database to a date using jQuery when displayed in the browser.

Chris Tiemann answered 7 months ago

hey, thanks for your reply. i have implemented this with the custom field solution and it works quite well. However, there is still one small point to clarify. When I send the form, this format is displayed in the date field in the email: YYYY-MM-DD . However, it should be displayed like this: DD.MM.YYYY
Do you know how I could solve this? The date format is already set correctly in the general formidable settings, but apparently this does not apply to the "custom-date" field.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right