Orbeon Forms - 向导视图自动聚焦第一个字段
Orbeon Forms - Wizard View automatically focus first field
在我的表单中,我想使用向导视图。我注意到,当我更改部分时,该部分的第一个字段会自动聚焦。您可以在此处找到示例表格:https://demo.orbeon.com/demo/fr/orbeon/builder/edit/a82f35efaefb46cfba52ae2bb6ba1b5eec58c21d
是否可以禁用此功能?
我认为这个属性可以提供帮助:https://doc.orbeon.com/configuration/properties/form-runner/form-runner-detail-page#focusable-controls
但我不知道如何正确使用它。
您正在寻找您正在寻找的 oxf.fr.detail.initial-focus
属性。您可以通过向 properties-local.xml
.
添加以下 属性 来禁用您所描述的“初始焦点”行为
<property
as="xs:boolean"
name="oxf.fr.detail.initial-focus.*.*"
value="false"/>
如果您以前没有使用过属性,您可能想通过 this page from the documentation on how to set properties。
在我的表单中,我想使用向导视图。我注意到,当我更改部分时,该部分的第一个字段会自动聚焦。您可以在此处找到示例表格:https://demo.orbeon.com/demo/fr/orbeon/builder/edit/a82f35efaefb46cfba52ae2bb6ba1b5eec58c21d
是否可以禁用此功能?
我认为这个属性可以提供帮助:https://doc.orbeon.com/configuration/properties/form-runner/form-runner-detail-page#focusable-controls
但我不知道如何正确使用它。
您正在寻找您正在寻找的 oxf.fr.detail.initial-focus
属性。您可以通过向 properties-local.xml
.
<property
as="xs:boolean"
name="oxf.fr.detail.initial-focus.*.*"
value="false"/>
如果您以前没有使用过属性,您可能想通过 this page from the documentation on how to set properties。