英文:
Only Having a Pop-up After All Questions Are Answered
问题
我有一个REDCap调查中的三个是/否问题,我正在尝试使得如果他们对这三个问题中的任何一个回答“否”,那么在他们填写完所有三个问题之后,会弹出一个弹出窗口。是否有不必使用所有是/是/否组合的分支逻辑来实现这一点的方法?
我已经查找了类似的问题,但没有找到与我的要求相似的内容。
英文:
I have three Y/N questions in my REDCap survey and I'm trying to make it so that if they say no to any of the three questions, a pop-up shows after they fill out all of the three questions. Is there any way to do this without having to use branching logic for all the combinations of Y/Y/N?
I've looked up similar problems and haven't found anything that was similar to my requirements.
答案1
得分: 1
假设:
- 通过“弹出”您指的是由分支逻辑显示/隐藏的描述性文本字段。
- 您的三个是/否字段编码为
1, 是 | 0, 否
。 - 您的字段在此示例中被命名为
[q1]
、[q2]
、[q3]
。
当这三个问题都有响应,并且至少有一个是“否”时,分支逻辑将显示描述性文本字段,如下所示:
[q1]<>'' and [q2]<>'' and [q3]<>'' and sum([q1],[q2],[q3])<3
英文:
Assuming
- By "pop-up" you're referring to a descriptive text field shown/hidden by branching logic
- Your three y/n fields are coded
1, Yes | 0, No
- Your fields are named (for the purpose of this example)
[q1]
,[q2]
,[q3]
Branching logic to have the descriptive text field displayed when all three questions have a response, and at least one is "No", would be this:
[q1]<>'' and [q2]<>'' and [q3]<>'' and sum([q1],[q2],[q3])<3
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论