I have a form for entering information. on this form there are check boxes that make input boxes appear and disappear when they are checked and unchecked, meaning that that category is not applicable at that time.
I am working on an edit page and what I would liek to do, is that if the category is edited to become not applicable I would like all the information that relates to that category deleted from the database.
For example one category is physical attributes, which includes temperature, appearance, odor. if these items are filled in in the initial entry and saved, but then they are not applicable in the future I want to be able to click the check box that says ‘physical attributes N/A’ and have the corresponding information deleted, without having to physically delete each field manually before hitting save.
any ideas?