Hello and thank you for looking:
Is there a possibility however to use the BIND tag around the <text name=”name”>Bookmark</text> to rename the bookmark before it’s generated? I’d like to set a reference in the TEXT tag, property name, to a field from the data connection such as <bind match=“dataRef” ref=“FIELD”/>. But it didn’t work adding that line below the TEXT declaration or instead of the value of the TEXT name declaration.
I don't see a way to change the bookmarks value, since these are read from the template DOM, which is always read only.
Even a binding won't change that, since this will only take effect on the form DOM, which is the virtual representation of the form created from the template and data DOMs when the form is initialized.
Here an example: A subform (sf1) with a dynamic binding to the value of an embedded textfield (field1).
<subform w="197.3mm" h="284.3mm" name="sf1">
<text name="name">My default bookmark name</text>
<setProperty ref="!data.form1.sf1.field1" target="extras.#text.[name eq "name"]"/>
<field name="field1" y="6.35mm" x="9.525mm" w="62mm" h="9mm">
<margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>
<para vAlign="middle" widows="2" orphans="2"/>
<text>My NEW bookmark name</text>
The setProperty will change the value of the bookmark, but in the form DOM not the template DOM.
Only the latter is updated, but it's NOT the one to be used to create the bookmarks in the PDF viewer.