since ‎18-07-2012
‎09-07-2020
dcidev
Level 5
Re: Version Check 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.
979
Views
0
Likes
0
Answers
When attaching PDFs to a PDF, why does Acrobat/Reader open them in hidden mode? 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 ...
395
Views
0
Likes
0
Answers and Comments
Re: Acrobat Reader DC doesnt call functions stored in script object. 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
356
Views
0
Likes
0
Answers
Re: Data extraction from a set of text fields and more than one document 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
362
Views
0
Likes
0
Answers
Re: Can I stop a user from using File>SaveAs? 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
483
Views
0
Likes
0
Answers
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? 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
494
Views
0
Likes
0
Answers
Re: Form flow in adobe livecycle designer 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
389
Views
0
Likes
0
Answers
Re: JavaScript Console Problem (only in LS preview mode) dcidev - Adobe LiveCycle
Restarting my computer several times seams to have done the trick. Weird though.Kyle
437
Views
0
Likes
0
Answers
Re: JavaScript Console Problem (only in LS preview mode) dcidev - Adobe LiveCycle
Now the same thing is happening to me...Kyle
433
Views
0
Likes
0
Answers
Re: hyperlinks in a pop message 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
700
Views
0
Likes
0
Answers
Re: Copy and paste multiple excel rowes into a fillable PDF all at once 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
676
Views
0
Likes
0
Answers
Re: Predicates 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
426
Views
0
Likes
0
Answers
Re: LiveCycle: Link or Button to Open Attachment? 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
1355
Views
1
Like
1
Replies
Re: Re: e-mail button changes email address when submitting 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
443
Views
0
Likes
0
Answers
Re: Re: e-mail button changes email address when submitting 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
445
Views
0
Likes
0
Answers
Re: e-mail button changes email address when submitting 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...
460
Views
0
Likes
0
Answers
Re: e-mail button changes email address when submitting dcidev - Adobe LiveCycle
I can have a look if you want to upload your PDF here.Kyle
462
Views
0
Likes
0
Answers
Re: search functionality 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
409
Views
0
Likes
0
Answers
Re: How to auto capitalize after a period in text field 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
412
Views
0
Likes
0
Answers
Re: issues adding multiple items to a drop down list dcidev - Adobe LiveCycle
Is the spreadsheet software you're using Excel?Kyle
683
Views
0
Likes
0
Answers
Re: Paragraph construction with fillable fields 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....
550
Views
0
Likes
0
Answers
Deflate Algorithm Script 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
430
Views
0
Likes
0
Answers and Comments
Re: Why is XSLT required? 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
369
Views
0
Likes
0
Answers
Re: Get PDF Doc object from exportDataObject() method 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
611
Views
0
Likes
0
Answers
Get PDF Doc object from exportDataObject() method 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 ...
809
Views
0
Likes
1
Answers and Comments
Re: com reference c# 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
448
Views
0
Likes
0
Answers
Re: com reference c# 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
446
Views
0
Likes
0
Answers
Re: QR Code multiline 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
533
Views
0
Likes
0
Answers
Re: QR Code multiline dcidev - Adobe LiveCycle
Instead of "\n" use "\x0D".Kyle
552
Views
0
Likes
0
Answers
Re: Question on validation 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...
393
Views
0
Likes
0
Answers
Likes given to