Revert to vanilla SharePoint checkbox / slider

Forums Dynamic Forms for SharePoint Revert to vanilla SharePoint checkbox / slider

Tagged: , ,

Viewing 1 reply thread
  • Author
    Posts
    • #32962
      Jon Whisman
      Participant

      What CSS code to use to turn off the now default functionality that converts all boolean checkboxes to sliders? Some user groups we have do not like the slider and want the default chechboxes.

    • #32964
      Alexander Bautz
      Keymaster

      Try adding this to your custom js:

      jQuery(".spjs_boolean_slider").remove();
      jQuery(".spjs_boolean_wrap input").unwrap();

      I haven’t really thought about toggling this on and off so you might have to test it to ensure it works correctly (that the values are saving correctly and that any rules you have on the field work as expected).

      Let me know how it works out.

      Alexander

Viewing 1 reply thread
  • You must be logged in to reply to this topic.