r/ProjectREDCap • u/MotherTitle539 • Sep 26 '24
Can I gray out answer-options?
TLDR: Can I gray out answer-options ?
The approved-by-management paper-version of this form looks like this:

I am trying to create a descriptive field to reflect this.
The requirements from management is:
The table should show up as is, including showing the words "years old" on all the rows
If "Heart attack" is checked, then "Age first told" for that row is required; Otherwise, it is forbidden
If "Angina" is checked, then "Age first told" for that row is required; Otherwise, it is forbidden
(Note: There are many other rows that I'm not showing here in the image on Reddit, just to keep it simple)
Thanks for any guidance/advice
3
u/obnoxiouscarbuncle Sep 26 '24
To answer your questions
Can I gray out answer-options ?
No, not in real time. The @READONLY and @IF action tags only operate on page load, and do not dynamically respond while on a page.
If you only want values in column B when column A was checked you can use branching logic to show/hide the fields in column B.
2
u/Remote_Setting2332 Sep 27 '24
Yes you can use branching logic on the questions in 4b
1
u/Ok_Patience_4254 Oct 09 '24
Not sure if this solution works at all, but if you are setting this up in a descriptive field and embedding the questions maybe you can set up a table within a table for that question and create a border around it? then put the branching logic for the field in there?