Support » Plugin: Gravity Slider Fields » Slider Fields on Dynamically Generated Fields

  • We have a form that utilizes this plugin. The plugin does work flawlessly for the initial fields.

    However, we have a very complex form and we’re also using this plugin: which dynamically nests additional gravity forms inside the original gravity form in the DOM.

    We have a button that is clicked, that loads the nested form. OnClick I am able to manipulate various DOM elements for the nested form. I am also trying to run sliderInit(); to change the dynamically loaded slider fields but keep getting “noUiSlider (10.0.0): Slider was already initialized.”

    Was wondering if you knew of a way to “re-run” the slider field javascript to “sliderize” [lol] the slider fields that were loaded dynamically?

    Thank you!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I was trying to figure out a way to un-initialize the noUiSlider object upon click and rerun sliderInit(); to bind to the dynamically generated DOM elements to no success.

    However, I figured out a working solution customized to this specific project … had to modify the /gravity-slider-fields/js/slider.js file though.

    Plugin Author uamv


    @mrcteam I’ll add this to my list and try to investigate at some point. Thanks for reporting!

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