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.
我正在使用 Orbeon Form Builder 并有一个带有重复部分的表单,其中包含一个名为address的字段以及其他一些字段。
最少可以有 4 次重复,最多可以有 6 次。
有没有办法在重复地址字段上添加约束以使其强制,除非它是最后一项?
假设您的重复网格名称是address(这是重复网格的名称,而不是字段)。然后在现场你可以使用以下约束:
address
empty(../following-sibling::address) or . != ''
本质上,您是说如果没有后续address迭代(这意味着我们在最后一行),此字段始终有效,并且其他值必须为非空。