Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Acrobat 6-Trying to put a string and name field together in Javascript

Status
Not open for further replies.

at51178

Technical User
Mar 25, 2002
587
US
Hi,

I have one textbox called Text_DATE that only shows the day of the month I also have a combobox named cboCommit in addition to this I also have
31 textboxes named txtCommit1, txtCommit2, txtCommit3 and so on and so on until it hits txtCommit31, one textbox for every day of the month for a 31 day month. Basically in stead of writing 31 if statements and attach it to the blur action of the cboCommit combobox I decided to do it a little differently, this is the code that I have, but for some reason it does not work, so basically my question is can this be done at all in acrobat (view code below).

var strDate = this.getField("Text_Date")

var cboCommit = this.getField("cboCommit")

var txtCommit = this.getField("txtCommit"+strDate)

txtCommit.value =cboCommit.value
 
Sorry, I have read this post a number of times and I really don't understand what you are trying to do - can you be more precise in explaining what you are trying to achieve?

Rule Britannia, Britannia Waives the Rules
 
Thanks for responding

I actually found out what my problem was
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top