docassemble - 显示是否在 docassemble 中的强制问题和非功能性继续按钮
问题描述
我的面试只有两个强制性问题。在第一个强制性问题(即用户实际上无法继续)之后,我得到了一个非功能性的继续按钮,但只有当该字段保持隐藏状态时。我认为这与show if
. 有什么建议么?据我所知,按钮上的 javascript 在两种情况下都是完全相同的。
有没有简单的解决方法,我可以/应该docassemble
从这个错误中学到什么?
.yml 文件的相关部分:
---
mandatory: True
progress: 90
question: |
Thank you for completing this survey.
fields:
- We are always trying to get better, and we're sorry we couldn't help you. Please tell us what you were hoping we could assist you with.
input type: area
required: False
show if:
code: |
not is_eligible
---
mandatory: True
question: Thank you for your interest!
buttons:
- Exit: exit
- Restart: restart
progress: 100
---
解决方案
在 1.2.42 或更高版本中,这应该可以工作。
推荐阅读
- css - 添加分隔线 | 菜单之间
- javascript - 我应该如何使用 javascript 更改带有变量的注入 HTML 元素?
- vb.net - SSL/TLS 连接在后台后无法在 webclient 中工作
- javascript - 有没有办法为另一个可观察数组的每个元素使用可观察返回函数?
- python - 如何在不使用 sellenium 的情况下使用 python 在网络抓取中加载更多结果?
- json - 如何使用 Axios 通过 React 发出循环请求?
- entity-framework - 从数据库表创建模型类的最佳方法是什么
- python - 根据行和列条件中的条件求和
- applescript - 用applescript点击
- selenium - 为什么 ExpectedConditions invisibilityOfElementLocated 使用元素 ID 工作,但使用预加载器的类名失败?