Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1469649

    Hello,
    Is there a way to modify the date picker format in the Enfold contact form element? I would like to change for U.S. audiences, so in this case the preference is Month/Date/Year. (eg. 10/22/2024).
    Thank you.

    #1469661

    Hey mattb1169,

    Thank you for the inquiry.

    You can use these filters in the functions.php file to change the format of the date picker:

    add_filter('avf_datepicker_dateformat', 'new_date_format');
    function new_date_format() {
        $date_format = "mm / dd / yy";
        return $date_format;
    }
    
    add_filter('avf_datepicker_date_placeholder', 'new_date_placeholder');
    function new_date_placeholder() {
        $placeholder = "MM / DD / YY";
        return $placeholder;
    }

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.