Includes changing form.enabled to use OnOffField, for consistency with other on/off fields. OnOffField's data is a boolean, not a string, so some of the logic using it needed to be changed.