I have a dynamic form containing a number of fields whose captions will vary based upon the data given to it. Say the data looks something like this:
<?xml version="1.0" encoding="UTF-8"?><Root> <Drinks> <Drink> <Name>Coke</Name> </Drink> <Drink> <Name>Pepsi</Name> </Drink> <Drink> <Name>RC Cola</Name> </Drink> </Drinks></Root>
I’ve attempted to set the caption of each field to the corresponding Name by using Dynamic Properties, $record.Drinks.Drink[*].Name in this case.
The following is generated in the XML: <setProperty target="caption.value.#text" ref="$record.Drinks.Drink[*].Name"/>
But the result is that the all Captions are set to the same value, the first child node of Drinks (Coke).
A link to the PDF is here: https://files.acrobat.com/a/preview/987ba4fa-19e4-4e38-8147-a75c12daaa7c. You can import the above XML to reproduce the issue.