Support » Plugin: Gravity Slider Fields » Bug in slider js

  • Resolved pendulumcreativeuk


    Hi there,

    There is a bug that throws js error: Uncaught Error: noUiSlider (10.0.0): Slider was already initialized.

    This happens when I am reloading another form (ajax reload) that does not contain slider plugin. The issue seems to be with this code in slider.js

    jQuery(document).bind('gform_page_loaded', sliderInit);

    since it’s just probably trying to reinitialize the whole plugin when gform_page_loaded hook is ran. Would it be possible to have it fixed?


Viewing 6 replies - 1 through 6 (of 6 total)
  • Hey guys,

    just another shout out to the developer, to let him know that I am experiencing the same exact issue on my installation as well.

    Thanks for any help provided!


    Hey again,

    I can easily fix this by customizing the plugin directly, but as we all know, this is not a proper solution.

    Anyway, if you just target the form that contains the range slider, inside of the gform_page_loaded, you can stop the error from occurring in the other form on the same page:

    jQuery(document).bind('gform_page_loaded', function( event, form_id, current_page ) {
        if( 6 === form_id ) {

    This works for the time being, but I need a permanent solution here.

    Plugin Author uamv


    Noted. Thanks for reporting this. I’ll add to my todo list and try to figure a better solution for this.

    Plugin Author uamv


    Version 1.2 should fix this, I think. Let me know how it looks on your end. Thanks!

    Plugin Author uamv


    Just realized my fix rolled back in another bug that I’d previously fixed. Hmmm. More work needed.

    Plugin Author uamv


    Okay. v1.3 should do the job properly.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Bug in slider js’ is closed to new replies.