This simple piece of JS, can be used to turn your toggles into actual toggles, rather than having to submt the form
TB.render('component_id', function(data) {
// Assuming the checkbox has a class 'your-checkbox-class'
jQuery('.your-checkbox-class', data.ele).change(function() {
// Submit the form on any change of the checkbox state
jQuery('.af-form-submit', data.ele).click();
});
});