Hi All
I have a form that has two combo boxes:
TITLE
CURRENCY
Depending on the selection of CURRENCY depends on what bank details are displayed in Text field BANK DETAILS' however if TITLE is set to 'Commercial Invoice' I want the Text field BANK DETAILS to be blank, but fillable in by the user with other information..
my code so far for the BANK DETAILS field is:
if (this.getField("Currency").value == "USD $" ){ event.value = "Bank details 1."; }; if (this.getField("Currency").value == "GBP £"){ event.value = "bank details 2."; }; if (this.getField("Currency").value == "EUR €"){ event.value = "bank details 3."; }; if (this.getField("Title").value == "Commercial Invoice") { event.value=''; };
however obviously I don't want the value of BANK DETAILS to be set to nothing because when the user types in the blank text box, the text just disappears.. Is there a way to say it should be the default value but can also be written in?
thanks
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script