Store boolean toggle values in script and use those when saving instead of input field values