Support

Home Forums Event Espresso Premium custom question field date

custom question field date

Posted: February 17, 2016 at 1:35 am


Victor Quinten

February 17, 2016 at 1:35 am

hi there,
if u use an custom question field ‘date’ the datepicker is displayed, can this be customized? for example by css?

and what about the display type?
that is now 23/04/1980
can this be changed to 23-04-1980 ?

thanks for the answers ๐Ÿ™‚


Lorenzo Orlando Caum

  • Support Staff

February 17, 2016 at 7:17 am

Hi Victor,

Please see this example:

https://gist.github.com/joshfeck/e7a461c24fe75f6decaa

It can be added to your site through a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/).


Lorenzo


Victor Quinten

February 19, 2016 at 1:27 pm

Hi Lorenzo,
Thanks for the example, can i change/edit this one to my needs and added to my functions.php in my theme?


Josh

  • Support Staff

February 19, 2016 at 1:47 pm

Yes, you can change:

dateFormat: 'dd/mm/yy'

to

dateFormat: 'dd-mm-yy'


Victor Quinten

February 19, 2016 at 2:41 pm

Hi John, thanks.
and then add it to my functions.php in my used theme?


Josh

  • Support Staff

February 19, 2016 at 4:24 pm

You can add it to a functions plugin or into your WordPress theme’s functions.php file.


Victor Quinten

February 26, 2016 at 2:42 pm

thanks ๐Ÿ™‚

The support post ‘custom question field date’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso