In my form I have 30 checkboxes named chk1 to chk30, whenever I check one of these checkboxes I would like chk_reject to be checked as well. Is there a way to do this without editing the afterupdate of 30 checkboxes?
That's pretty good but mine works a bit different, I have a negative checklist and when an item is not correct they can tick the reason. When one of the boxes is ticked I want my accept checkbox to disappear and the reject checkbox checked. When I uncheck the reject button I want my 30 checkboxes cleared and my accept checkbox visible again..I think your table design may be poor and this is giving you the headache. I assume you have 30 tests that you want to apply and if any one of these tests fail then the item as a whole fails.
Instead of 30 checkboxes (what happens if you need to add a 31st test?) I would have a related table and only store results of failed tests. Then you can count the number of entries in this table and if it's zero it's a pass, if it's greater than zero it's a fail.
See the attached.