首页 > 解决方案 > 显示是否在 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
---

标签: docassemble

解决方案


在 1.2.42 或更高版本中,这应该可以工作。


推荐阅读