Disable Checkbox with same name as another but different export value based on another checkbox
I have searched this forum literally for hours to find help with this.
I have four checkboxes: Cancer (export value is Yes), Cancer (export value is No), ICU (export value is Yes), and ICU (export value is No).
Users should not be able to check both Yes and No for either Cancer or ICU. So, I'm good here.
However, users also cannot select Cancer (export value No) and ICU (export value Yes). Therein lies my issue.
How can I disable ICU (export value Yes) only when Cancer (export value No) is checked and simultaneously check ICU (export value No)?
I am not even a rookie to javascript - far less 😂. However, I'm a wiz at copying and pasting. Help!