25 Sep Action Tag Spotlight: @HIDECHOICE
People who run long term surveys will occasionally need to edit existing questions. In order to do this, you would have needed to retire an entire variable to update options in certain field types. Now, the new action tag @HIDECHOICE allows you to hide specific options within certain field types.
You can use the @HIDECHOICE action tag with dropdowns, radio buttons, and checkboxes.
Simply add the action tag and specify which options you would like to be hidden. Options can be specified by their raw values.
One great benefit of hiding options is that previously entered values for the hidden options are retained, but future responses will no longer contain that option.
Example
The following question about ethnicity has an option, “Unknown/Not Reported”, that the survey creator would like to hide at some point after the form is live. In order to do so, he or she would add @HIDECHOICE=’2′ to the Action Tags / Field Annotation box.
Hiding multiple options
You can also hide multiple options easily by simply listing all the options separated by comma after the action tag command. Example: @HIDECHOICE=’1,2′
More About Action Tags
For a complete review of using Action tags, check out the following REDCap Tip of the Month.
Modify Individual Survey Fields with Action Tags
Ever wish you could make a certain field read-only? Well, action tags will allow you to do that and more.
Read More ›