I'd like to be able to read a field from my database and if the field is 'check', the data would be linked to a checkbox. If the field is 'radio', the data would be linked to a checkbox. Is there a way for me to do this in javascript on the data mapping?