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.
我有一个表单选择字段。根据选择的选项,我想输入另一个文本字段的值。如果选择了一个选项,文本字段应该是模糊的,即返回 false,否则它应该允许强制输入文本我迫切需要示例代码。使用 plone 4.1.4、Ploneformgen 1.7.9
You can probably do this by using a custom validation override, and looking at the data you get in the request (probably a have request object, or fallback to context.REQUEST).
request
context.REQUEST