Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Plone 和 z3c.forms。顶部有一个字段,用于选择我们正在创建的内容对象。然后它会显示构建该对象所需的字段。
我需要能够根据在表单顶部选择的内容对象有条件地要求字段。这可能吗?
有可能的; 你需要的是一个“不变的验证器”。看看这里。