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.
我想让一个文本框document_id显示当前。是否有一个 XPath 表达式来获得它?
document_id
以下 XPath 返回当前文档 ID,与您在编辑页面上通过单击摘要页面中的表单实例获得的 URL 上看到的相同。
xxforms:instance('fr-parameters-instance')/document
但是请注意,如果您在计算表达式中使用它,对于新表单,该值将不会显示,直到在表单中完成更改(例如,用户在字段中输入了一个值)。