app.form.fillFromData without animation for toggle el


Is it possible to disable animation for the toggle element when we programmatically fill in the form (app.form.fillFromData)?


  • before calling app.form.fillFromData add some class to toggle that will disable animation on toggle and its elements in CSS (with transition: none)
  • call app.form.fillFromData
  • remove that custom class you added in first step
1 Like

I add styling to this this element, but the animation doesn’t turn off:

<label class="toggle toggle-init" style="transition: none;">...</label>

As it turned out, we need to add this style to .toggle-icon and .toggle-icon:after
And most importantly, we need to delete the style after 300ms.