Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2007-11-16 13:57:43

dhuy
Member
Registered: 2007-11-16
Posts: 0

text fields is populated by a dynamically populated drop-down

I have a drop down list that is populated by OLEDB data connection, how do I populate a text field based on that drop down?  There is an example for LC V8.1 called "Purchase Order" but that example the drop down field is hard coded.

Any help is greatly apprieciated.


My Product Information:
LiveCycle Designer Connect 8.1 / Windows

Offline

 

#2 2007-11-29 13:58:03

sconforms
Member

Registered: 2007-07-10
Posts: 30

Re: text fields is populated by a dynamically populated drop-down

You'll need to script the drop down list's Change event. In the Change event, you can access the xfa.event.newText property which which will contain the text value of the item the user selected from the list. If that's what you want in the text field, then simply assign the text value to the text field:

myField.rawValue = xfa.event.newText;

If you want the value associated with the text that was selected, you can use the boundItem method:

myField.rawValue = this.boundItem(xfa.event.newText);

If your list items have text and value data, the above statement will assign the value data (associated with the selected text data) to the text field.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in