since ‎21-02-2012
‎03-08-2020
Town_of_Sandwic
Level 1
Re: dropdown list addItem not working using a variable field name in a custom function
Avatar

Town_of_Sandwic

Town_of_Sandwic
- Adobe LiveCycle
I found the answer...var fldName = xfa.resolveNode('topmostSubform.Page1.' + items.target.name);

Views

536

Likes

0

Replies

0
dropdown list addItem not working using a variable field name in a custom function
Avatar

Town_of_Sandwic

Town_of_Sandwic
- Adobe LiveCycle
I obviously don't know enough about javascript to figure out why addItem will not work in my custom script object using a variable "fldName" but it does work if I use the actual field name "accountNo1"? My objective is to auto-populate thirteen drop-down lists "accountNo1, accountNo2, accountNo3" and so on. Any help will be greatly appreciated.function accountList(items){ var fldName = items.target.name;switch(department.rawValue){//auto populate drop-down list based on department selection case...

Views

768

Likes

0

Replies

1
Re: Set focus to xfa.host.response dialog box
Avatar

Town_of_Sandwic

Town_of_Sandwic
- Adobe LiveCycle
Hi,I'm currently struggling with the same problem... the following Enter Event code will place the cursor inside the dialog box; however, the password text will no longer be masked. I'm still looking for a work-around...//password protected fieldxfa.host.beep("1");var correctPassword = "your password here";var resp = app.response({cQuestion:"PASSWORD PROTECTED FIELD", cTitle:"Protected Field", bPassword:true[xfa.host.setFocus(this.someExpression)], cLabel:"ENTER PASSWORD:"});if(resp==null || res...

Views

674

Likes

0

Replies

0
Dynamically flatten, rename and attach a form to an email message
Avatar

Town_of_Sandwic

Town_of_Sandwic
- Adobe LiveCycle
I've had no luck in the past three weeks trying to figure this out...Is it possible to flatten (or use an Adobe PDF printed file), rename and attach a dyamic LiveCycle form to email using javascript? I'm working on a purchase order that uses information in the form's fields to generate the email address, contact name, and message along with the attached form which will be sent to the vendor, but I am unable to change the the attachment name or flatten the form.Any help would be appreciated.Stefa...

Views

769

Likes

0

Replies

2
Re: Defualt printer name as Adobe PDF
Avatar

Town_of_Sandwic

Town_of_Sandwic
- Adobe LiveCycle
Hi Jay,Did you end up finding a way to dynamically change the PDF file name? I can change the .ps file name using:pp.fileName = "/u/forms/purchase order/" + docName + ".ps";However I get an error when I use:pp.fileName = "/u/forms/purchase order/" + docName + ".pdf";ThanksStefan

Views

323

Likes

0

Replies

0
Re: LiveCycle Message Box Beep
Avatar

Town_of_Sandwic

Town_of_Sandwic
- Adobe LiveCycle
Hi radzmar,Thanks for your help.Town of Sandwich

Views

384

Likes

0

Replies

0
LiveCycle Message Box Beep
Avatar

Town_of_Sandwic

Town_of_Sandwic
- Adobe LiveCycle
Is it possible to change or mute the default ("4") host message box beep in LiveCycle? I can change the beep type using xfa.host.app.beep() however the message box triggers the default beep ("4") then the app beep I specify will trigger. The same default beep ("4") triggers regardless which type of messagebox I select. e.g.0 (Error), 1 (Warning), 2 (Question), 3 (Status), and 4 (Default). Thanks.

Views

1.2K

Likes

0

Replies

3
Re: how to calculate future date
Avatar

Town_of_Sandwic

Town_of_Sandwic
- Adobe LiveCycle
Hi Bruce,Thanks for the quick response. I'm not sure why, but the FormCalc code DateTimeField.rawValue = XFADate.newDate(Date1).addMonths(2).toXFADate() didn't work either. I ended up getting it to work by placing the following JavaScript code in the calculate field of my second date field:var examination = new Date(DateField1.formattedValue);var nextExam = new Date(new Date(examination).setMonth(examination.getMonth()+2));util.printd("mm/dd/yyyy", nextExam);Thanks for your help,Stefan

Views

371

Likes

0

Replies

0
Re: how to calculate future date
Avatar

Town_of_Sandwic

Town_of_Sandwic
- Adobe LiveCycle
Hi Bruce,I was wondering if this issue has ever been resolved? The code adds months correctly however, it does not calculate years e.g. one month added to 12/31/2011 should calculate as 01/31/2012. Your suggestion of using rawValue instead of formattedValue returns 01/00/0000 no matter what date is entered.Thanks,Stefan

Views

399

Likes

0

Replies

0
ImageField not highlighting with "Highlight Fields" button
Avatar

Town_of_Sandwic

Town_of_Sandwic
- Adobe LiveCycle
I have searched numerous forums in vain looking for an answer to the following question...Is it possible to have a LiveCycle 9 imagefield highlight on and off with the Acrobat X "Highlight Fields" button? I am successful at highlighting the imagefield on initialize, which will then turn off with the "Highlight Fields" button, but it will not toggle back on again. Any help will be appreciated.Thanks,Stefan

Views

561

Likes

0

Replies

0