Support » Plugin: Gravity Slider Fields » Slider was already initialized – two forms on one page

  • Resolved YEWS-Grigory

    (@yews-grigory)


    I have two gravity forms – one specifically for desktops and the other for mobiles.
    They are hidden via css (display: none), depending device.

    When on mobile – and continue onto second page, the error happens:

    nouislider.min.js?ver=1.4:3 Uncaught Error: noUiSlider (10.0.0): Slider was already initialized.
        at Y (nouislider.min.js?ver=1.4:3)
        at Object.Z [as create] (nouislider.min.js?ver=1.4:3)
        at HTMLDivElement.<anonymous> (slider.min.js?ver=1.4:1)
        at Function.each (jquery.js?ver=1.12.4:1)
        at a.fn.init.each (jquery.js?ver=1.12.4:1)
        at e (slider.min.js?ver=1.4:1)
        at HTMLDocument.<anonymous> (slider.min.js?ver=1.4:1)
        at HTMLDocument.dispatch (jquery.js?ver=1.12.4:1)
        at HTMLDocument.r.handle (jquery.js?ver=1.12.4:1)
        at Object.trigger (jquery.js?ver=1.12.4:1)
    Y	@	nouislider.min.js?ver=1.4:3
    Z	@	nouislider.min.js?ver=1.4:3
    (anonymous)	@	slider.min.js?ver=1.4:1
    each	@	jquery.js?ver=1.12.4:1
    each	@	jquery.js?ver=1.12.4:1
    e	@	slider.min.js?ver=1.4:1
    (anonymous)	@	slider.min.js?ver=1.4:1
    dispatch	@	jquery.js?ver=1.12.4:1
    r.handle	@	jquery.js?ver=1.12.4:1
    trigger	@	jquery.js?ver=1.12.4:1
    a.event.trigger	@	jquery-migrate.min.js?ver=1.4.1:2
    (anonymous)	@	jquery.js?ver=1.12.4:1
    each	@	jquery.js?ver=1.12.4:1
    each	@	jquery.js?ver=1.12.4:1
    trigger	@	jquery.js?ver=1.12.4:1
    (anonymous)	@	(index):776
    dispatch	@	jquery.js?ver=1.12.4:1
    r.handle	@	jquery.js?ver=1.12.4:1
    load (async)		
    add	@	jquery.js?ver=1.12.4:1
    a.event.add	@	jquery-migrate.min.js?ver=1.4.1:2
    (anonymous)	@	jquery.js?ver=1.12.4:1
    each	@	jquery.js?ver=1.12.4:1
    each	@	jquery.js?ver=1.12.4:1
    sa	@	jquery.js?ver=1.12.4:1
    on	@	jquery.js?ver=1.12.4:1
    bind	@	jquery.js?ver=1.12.4:1
    a.fn.(anonymous function)	@	jquery-migrate.min.js?ver=1.4.1:2
    (anonymous)	@	(index):776
    i	@	jquery.js?ver=1.12.4:1
    fireWith	@	jquery.js?ver=1.12.4:1
    ready	@	jquery.js?ver=1.12.4:1
    K	@	jquery.js?ver=1.12.4:1

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author uamv

    (@uamv)

    Thanks for point this out. I’ll add to my list to investigate.

    yzmdev

    (@yzmdev)

    Hi,

    I have same issue in my site, i have two form on same page.
    Is there any updated regarding above mentioned issue.

    Regards

    hpsi

    (@hpsi)

    Hi,
    I am having the same error under equal conditions: Two forms on one page, upon AJAX-pagination the error is thrown. In addition, this completely breaks the conditional functionality of gravity forms, as conditional fields are no longer set to “display:none;” initially on page render.

    Please fix this error in the plugin, or advise on how to tackle this. Thanks!

    Plugin Author uamv

    (@uamv)

    I bring good news today. This issue re: slider initialization should be fixed in version 1.5. (cc: @yews-grigory @yzmdev @hpsi)

    @uamv, nice work! Thank you for your reply and update.

    Wonderful, thanks for letting us know!

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