Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1070402

    Hi,
    I’m developing a custom ALB element and I need a backend date picker just like the one in countdown element.
    I copied the the code in countdown element, and it works fine, but it only allows to pick dates in the future.

    Here is the code:
    array(
    “name” => __(“Date”,’avia_framework’ ),
    “desc” => __(“Pick a date in the future.”,’avia_framework’ ),
    “id” => “date”,
    “type” => “datepicker”,
    “container_class” => ‘av_third av_third_first’,
    “std” => “”),

    Is it possible to configure it to allow past dates as well?

    Thank you

    #1070578

    Hey aledef,

    You will need to modify avia-modal.js found in wp-content > themes > enfold > config-templatebuilder > avia-template-builder > assets > js folder.
    You’ll need to remove (or just comment out) the minimum date code found in line 460:

    minDate: -0,

    Hope this helps.

    Best regards,
    Nikko

    #1070722

    Great

    Thankyou Nikko!

    #1071438

    Hi aledef,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

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