Revert to vanilla SharePoint checkbox / slider
- This topic has 1 reply, 2 voices, and was last updated 5 years, 8 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Home › Forums › Classic DFFS › Revert to vanilla SharePoint checkbox / slider
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.
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