since ‎18-07-2012
‎18-11-2020
dcidev
Level 5
Re: Version Check
Avatar

dcidev

dcidev
- Adobe LiveCycle
Object.defineProperty is a big one for our PDFs. Can't extend the Object class with custom methods that are non-enumerable.

Views

1.0K

Likes

0

Replies

0
When attaching PDFs to a PDF, why does Acrobat/Reader open them in hidden mode?
Avatar

dcidev

dcidev
- Adobe LiveCycle
Hello all!I've always noticed that when an XFA PDF is being attached to an XFA PDF using the paperclip/app.execMenuItem("AddFileAttachment") method, Acrobat/Reader opens each PDF (in silent/hidden mode) after they are attached.I know this because in my console, all my pre-rendering scripts are fired for each PDF that is attached. Does anyone have any insight as to why Adobe does this (security reasons perhaps)?And of course the 64 thousand dollar question, can this be disabled? When adding many ...

Views

418

Likes

0

Replies

0
Re: Acrobat Reader DC doesnt call functions stored in script object.
Avatar

dcidev

dcidev
- Adobe LiveCycle
I just tested my forms on Reader DC the other day and it called the functions in the script objects fine. Make sure there aren't any syntax errors in the script object. Some versions of Reader are more lax than others. Even the Check syntax button in Designer doesn't always highlight the error.Kyle

Views

379

Likes

0

Replies

0
Re: Data extraction from a set of text fields and more than one document
Avatar

dcidev

dcidev
- Adobe LiveCycle
You can make a PDF in Designer to iterate through its document attachments to extract the data you need.Create a table with a repeatable row and button with code like this:var doc = event.target;for (var a=0;a

Views

388

Likes

0

Replies

0
Re: Can I stop a user from using File>SaveAs?
Avatar

dcidev

dcidev
- Adobe LiveCycle
Although you can't prevent the user from using File>SaveAs, you can always put a popup warning in the preSave event letting them know they should use your button. In the button you can set a variable that tells the preSave code that the user pressed the button as not to show the warning.Kyle

Views

506

Likes

0

Replies

0
Re: In Livecycle, How do I hide the first five numbers in a SSN and make the last 4 visible using JS, jquery, or just Livecyle?
Avatar

dcidev

dcidev
- Adobe LiveCycle
Try this:1) Create a hidden field ("hiddenField") to store the SSN value2) In your SSN input field under the enter event (JavaScript) put: this.rawValue=hiddenField.rawValue;3) In the same field under the exit event put:hiddenField.rawValue=this.rawValue;this.rawValue="*";for (var i=0;ii+4) this.rawValue+="*"; else this.rawValue+=hiddenField.rawValue.substr(i,1);}Kyle

Views

522

Likes

0

Replies

0
Re: Form flow in adobe livecycle designer
Avatar

dcidev

dcidev
- Adobe LiveCycle
Make sure the PDF is saved as a dynamic PDF. Also make sure the field is set to Expand to fit in the layout palette (if by flow you mean have the field expand to accommodate more text). Kyle

Views

417

Likes

0

Replies

0
Re: JavaScript Console Problem (only in LS preview mode)
Avatar

dcidev

dcidev
- Adobe LiveCycle
Restarting my computer several times seams to have done the trick. Weird though.Kyle

Views

452

Likes

0

Replies

0
Re: JavaScript Console Problem (only in LS preview mode)
Avatar

dcidev

dcidev
- Adobe LiveCycle
Now the same thing is happening to me...Kyle

Views

447

Likes

0

Replies

0
Re: hyperlinks in a pop message
Avatar

dcidev

dcidev
- Adobe LiveCycle
Hi Bruce,I didn't even know about the link_text element type. How did you find out about that? Is there a Acrobat 11 JS API reference out there I don't know about?Thanks!Kyle

Views

740

Likes

0

Replies

0
Re: Copy and paste multiple excel rowes into a fillable PDF all at once
Avatar

dcidev

dcidev
- Adobe LiveCycle
The only form of data Dynamic XFA forms can import/export through the UI is XML.You have to create an XML schema and map it to both the Excel spreadsheet and your PDF through Designer. You don't have to change the look of your company's form but you do have to break it open to map to the schema.Kyle

Views

826

Likes

0

Replies

0
Re: Predicates
Avatar

dcidev

dcidev
- Adobe LiveCycle
Maybe instead, if you want to send me an example of what you require I can try to send you a predicate that will work for you.Kyle

Views

443

Likes

0

Replies

0
Re: LiveCycle: Link or Button to Open Attachment?
Avatar

dcidev

dcidev
- Adobe LiveCycle
As per what Bruce said in that thread, use the following in the click event of your button:event.target.exportDataObject({ cName: "Tips.pdf", nLaunch: 2 });where "Tips.pdf" is the file name of your PDF attachment. Kyle

Views

1.4K

Like

1

Replies

1
Re: Re: e-mail button changes email address when submitting
Avatar

dcidev

dcidev
- Adobe LiveCycle
OK, here is a sure way of getting it to work with the Reader email UI:1) In your form open up the XML Source tab View>XML Source2) Go to Edit>Replace (Ctrl+H)3) Find What: tamara@psychologistsassociationa.ab.ca Replace With: tamara@psychologistsassociation.ab.ca4) Replace AllKyle

Views

477

Likes

0

Replies

0
Re: Re: e-mail button changes email address when submitting
Avatar

dcidev

dcidev
- Adobe LiveCycle
You can have Reader send the form right to the user's email client. Create a new regular button and in the click event put:var oDoc = event.target;oDoc.mailDoc({bUI: true,cTo: "tamara@psychologistsassociation.ab.ca",cSubject: "Submitting Completed Forms",cMsg: "Instructions to add this form to a response file:\n1. Double-click the attachment.\n2. Acrobat will prompt you to select a response file."});Kyle

Views

480

Likes

0

Replies

0
Re: e-mail button changes email address when submitting
Avatar

dcidev

dcidev
- Adobe LiveCycle
Hi Tamara,It seams to be a glitch with your version of LiveCycle Designer. It should work if you manually change the auto-generated script instead of using Designer's dialog. Here's how you can do that:1) Select your email submit button and open the Script Editor (Ctrl+Shift+F5)2) Make sure you select the 'click' event or 'Events with Scripts' filter at the top left of the script editor window next to 'Show:'3) Near the end of the script (line 57 and 59) you will see 'mailto:' followed by the fa...

Views

494

Likes

0

Replies

0
Re: e-mail button changes email address when submitting
Avatar

dcidev

dcidev
- Adobe LiveCycle
I can have a look if you want to upload your PDF here.Kyle

Views

498

Likes

0

Replies

0
Re: search functionality
Avatar

dcidev

dcidev
- Adobe LiveCycle
Bruce (BR001) has a really good example in his blog (full of other really good snippets too):Adobe LiveCycle Designer Cookbooks by BR001: Drop-Down List Control with auto-complete (Searchable Drop-Down List)Kyle

Views

425

Likes

0

Replies

0
Re: How to auto capitalize after a period in text field
Avatar

dcidev

dcidev
- Adobe LiveCycle
Try putting the following in the exit event of your text field:this.rawValue=this.rawValue.replace(/(^\w{1}|\.\s*\w{1})/gi, function(a){return a.toUpperCase();});Kyle

Views

434

Likes

0

Replies

0
Re: issues adding multiple items to a drop down list
Avatar

dcidev

dcidev
- Adobe LiveCycle
Is the spreadsheet software you're using Excel?Kyle

Views

721

Likes

0

Replies

0
Re: Paragraph construction with fillable fields
Avatar

dcidev

dcidev
- Adobe LiveCycle
You can create text objects and fields and wrap them in a Flowed subform and set the Flow direction to Western Text. Also to collapse to fit you would have to put code in the exit event of your field: this.minH=".05in" or any low value measurement. Also, if there are some text objects you want to keep with fields, you can turn the text object into the caption of the field. In your example I would make 'your' the caption of your second field.Here is a working PDF of what you're trying to achieve....

Views

569

Likes

0

Replies

0
Deflate Algorithm Script
Avatar

dcidev

dcidev
- Adobe LiveCycle
Hello all,I am wondering if anyone here has attempted using a deflate algorithm in Designer. I am trying to extract XML from a PDF attachment without using openDataObject and that is the only missing piece of the puzzle.Currently I am trying to implement pako.js but it is pushing my JavaScript ability to its limits.Any input would be greatly appreciated.Kyle

Views

441

Likes

0

Replies

0
Re: Why is XSLT required?
Avatar

dcidev

dcidev
- Adobe LiveCycle
I use XSLT to translate my forms. You can get Designer to create translation IDs associated with all your text objects and run the XDP file through an XSLT to get a list of all strings and their associated translations. You can then put it in Excel to have it translated. Once translated there's another XSLT you use with your original XDP. That way every time there's a coding or design change, you don't have to double your effort.Kyle

Views

383

Likes

0

Replies

0
Re: Get PDF Doc object from exportDataObject() method
Avatar

dcidev

dcidev
- Adobe LiveCycle
I found a way of opening attachments to a specific bookmark. It ain't pretty but it works. If anybody needs the script, let me know.Kyle

Views

623

Likes

0

Replies

0
Get PDF Doc object from exportDataObject() method
Avatar

dcidev

dcidev
- Adobe LiveCycle
Hello all,I've been attempting to write a function to open an attachment (Data Object), which is a PDF AND have the newly opened PDF go to a specified bookmark (which would be a parameter of the function). Now, I've written most of the function already except I need the Doc object of the PDF that was opened with the exportDataObject() method. Is there an easy way of doing this? It's too bad that the exportDataObject() method doesn't return the Doc of the PDF being opened. I'd rather not use the ...

Views

821

Likes

0

Replies

1
Re: com reference c#
Avatar

dcidev

dcidev
- Adobe LiveCycle
Is there a reason why you can't use the Action Wizard in Acrobat? Plus, I don't think there is a security setting that allows a user to open a PDF but doesn't allow them to save it.Kyle

Views

472

Likes

0

Replies

0
Re: com reference c#
Avatar

dcidev

dcidev
- Adobe LiveCycle
I've only ever needed two documents for Interapplication communication with Acrobat. I can't seam to find them online anymore so I posted them here and here.Kyle

Views

468

Likes

0

Replies

0
Re: QR Code multiline
Avatar

dcidev

dcidev
- Adobe LiveCycle
I use the same version of Designer you do. It could be your QR code reader. Try using another one and see if it works. I'm using Barcode Scanners for iPhone.Kyle

Views

609

Likes

0

Replies

0
Re: QR Code multiline
Avatar

dcidev

dcidev
- Adobe LiveCycle
Instead of "\n" use "\x0D".Kyle

Views

631

Likes

0

Replies

0
Re: Question on validation
Avatar

dcidev

dcidev
- Adobe LiveCycle
The best way to handle your situation is to store the value of your field in a variable when the user enters the field (ie before they change the value of the field).For instance, say your variable is 'storeValue', you would put in the enter event of your field, storeValue.value=this.rawValue.If your validation fails, you would script this.rawValue=storeValue.value;There are other scripting methods for undoing events that are more complex but can go a long way. Here is one by John Brinkman: http...

Views

412

Likes

0

Replies

0
Likes given to