- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
Here's a couple of links that might help with getting the drop down to work.
http://forms.stefcameron.com/2006/07/29/dynamic-properties/
And here's a sample that has a dropdown with languages and displays the words for 1,2,3,4, that might help as well.
https://workspaces.acrobat.com/?d=hFpi8EWJF0ejwP*gVKIMAw
This takes XML like;
<codes>
<value id="1" display="English">
<field1>one</field1>
<field2>two</field2>
<field3>three</field3>
<field4>four</field4>
</value>
<value id="2" display="Maori">
<field1>tahi</field1>
<field2>rua</field2>
<field3>toru</field3>
<field4>whā</field4>
</value>
</codes>
and has the following code in the change event of the drop down
var bountId = this.boundItem(xfa.event.newText)
var code = $data.resolveNode("codes.value.[id=="+bountId+"]");
TextField1.rawValue = code.field1.value;
TextField2.rawValue = code.field2.value;
TextField3.rawValue = code.field3.value;
TextField4.rawValue = code.field4.value;