Can I add branching logic to REDCap section headers?
Branching logic cannot be added directly to section headers, but they are hidden when all fields in their section are hidden.
Example:
The “Favorite Color” section header displays because the “Do you have a favorite food?” question displays and is in its section.
The “Favorite Color” section header is hidden because it only contains one question which is hidden by branching logic.
If you need more direct control over the display of section headers, you can use descriptive fields which do allow for branching logic. You can mimic the look of a section header by using the <div> tag:
<div class = “header”>Section Header Text</div>
Example:
Note that these descriptive fields will act like any other descriptive field and will not behave as a true section header would. For example, this will not create a page break in a survey.
More information can be found in REDCap’s Help & FAQ, under the question “Is it possible to use branching logic to skip an entire section?”