since ‎16-07-2003
‎10-12-2019
Thom_Parker
Level 3
Re: How to call REST api using Javascript in Designer? Thom_Parker - Adobe LiveCycle
This is something you'll need to setup yourself. The NET.HTTP object provides functionality for making raw HTTP Requests. It's a matter of setting the request parameters to match the Rest API.
1500
Views
0
Likes
0
Answers
Re: How to call REST api using Javascript in Designer? Thom_Parker - Adobe LiveCycle
You can call the Rest API from the NET.HTTP object.
1519
Views
0
Likes
0
Answers
Re: form logic calculation Thom_Parker - Adobe LiveCycle
Is your form a LiveCycle Form?
1214
Views
0
Likes
0
Answers
Re: Create Form with Data Transferable When Modified Thom_Parker - Adobe LiveCycle
If the old form is a regular AcroForm, then you should not have created the new form as a LiveCycle form. LiveCycle has a very different way of handling data, so the data files are not directly compatible. I would highly recommend that you re-create the form again, but this time as a regular AcroForm.If you do not want to do this, then you'll need to adjust the Form's Data Model in LiveCycle to use the field names from the previous form. Its been a long time since I've done this in LC, so I don'...
820
Views
1
Like
0
Answers
Re: set multiple drop down list values effect to other form fields Thom_Parker - Adobe LiveCycle
Yes, you'll find part of your answer in this article:https://acrobatusers.com/tutorials/change_another_field The article presents a technique for setting the value of other fields from a dropdown. But you can use this same technique to show/hide other fields using the "field.hidden" property.
1832
Views
0
Likes
0
Answers
Re: What would you recomand between Adobe Experience Manager Forms and Adobe Acrobat DC ? I need to obtain fill-in forms, editable Thom_Parker - Adobe LiveCycle
Everything about AEM on the web site seem pretty vague. It'all very salesy stuff, which is exactly the sort of thing that's likely to change drastically in the future. Especially since it is related to the late LiveCycle Designer.
7486
Views
0
Likes
0
Replies
Re: Export PDF Formular into XML - Missing fields as tags Thom_Parker - Adobe LiveCycle
Isn't there a livecycle forum for this type of question? This is not the forum.
859
Views
0
Likes
0
Answers
Re: Spawned Adobe Forms Thom_Parker - Adobe LiveCycle
What do you mean my "disappearing"? The field is completely missing from the spawned page? or it's hidden?
2687
Views
0
Likes
0
Replies
Re: How to create a "sub-form" within a fillable PDF form to be distributed to users? Thom_Parker - Adobe LiveCycle
Why can't you use the "Goto page view"? This is the preferred method because it will work when JS is not available. Just open the attachment in another Acrobat tab and when you select the "Goto page view" action, click on the embedded file.The JavaScript for this is tricky, but here it is:var oDoc = openDataObject(dataObjects[0].name)app.openDoc(xx.path)This code opens the first file attachment. And it won't work everywhere.
6251
Views
0
Likes
0
Replies
Re: How to create a "sub-form" within a fillable PDF form to be distributed to users? Thom_Parker - Adobe LiveCycle
If this "SubForm" is a completely different file, then the best way to distribute it is to make it an Attachment to the other file and then use the "GoTo Page View" action on a Button to open it. There's also a JavaScript function for this.You could also put it on a server and have the button open the file from an URL.
6251
Views
0
Likes
3
Replies
Re: Multiple check boxs activated with one "group" check box? Thom_Parker - Adobe LiveCycle
You're answer is in this threadSimultaneously check/uncheck two checkboxes with different names-always checked or unchecked together
982
Views
0
Likes
0
Answers
Re: Dynamic addition of text fields in PDF form? (Acrobat Pro DC) Thom_Parker - Adobe LiveCycle
The idea is to create a page that is basically a table of extra fields. You make this page a template and set it to hidden. Then you "spawn" this template into a new page from a script. Typically this is done from a script on a button labeled something like "Add More Entries". In addition, you could hide all the fields on the page and only expose the ones needed for the data.
5054
Views
0
Likes
0
Replies
Re: Dynamic addition of text fields in PDF form? (Acrobat Pro DC) Thom_Parker - Adobe LiveCycle
I believe your colleague was referring to LiveCycle Forms. A technology still supported by Adobe, but one that most consider dead.It is possible to use Page Templates on regular PDF forms to create new pages. There are other methods, but this is the only reasonable way to dynamically create fields.
5054
Views
1
Like
2
Replies
Re: Browse button using java script Thom_Parker - Adobe LiveCycle
A LiveCycle form is really a set of XML sections that define various functional parts of the final live form seen by the user. These sections are also called DOMs. The two main sections are the form template model and the Data model. When Acrobat opens an LC form it creates the real form seen by the user by merging the Data block with the form Template. In JavaScript the "Real Form" is accessed with the "XFA.form" SOM path specifier. The template is accessed with "XFA.template" and the data with...
1060
Views
0
Likes
0
Answers
Re: Browse button using java script Thom_Parker - Adobe LiveCycle
The LiveCycle/DB connection is for loading data from the DB into form fields on the LC form. If this is not the purpose of the XML data, then please explain how the XML is to be used.Here are a couple of articles that explain submitting by email. One of them provides an LC example.https://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address https://acrobatusers.com/tutorials/submitting-data
1042
Views
0
Likes
0
Answers
Re: Browse button using java script Thom_Parker - Adobe LiveCycle
Excel is a complex internal format. In fact it's a zip file that contains XML and other data. But the point is that converting Excel data inside the Acrobat JS environment is just not possible. There's no functionality for it.But since you are using LiveCycle you are in luck!! You can connect Excel form to ODBC, which the LC form can connect too.Here's an article on loading data into Acrobat from Excel.https://www.pdfscripting.com/public/ExcelAndAcrobat.cfmAnd it is not true the util.stringFromS...
1055
Views
0
Likes
0
Answers
Re: Browse button using java script Thom_Parker - Adobe LiveCycle
Why would someone have an older version of Reader? It's free
1017
Views
0
Likes
0
Answers
Re: Browse button using java script Thom_Parker - Adobe LiveCycle
A better option is to use the util.readFileToStream() function. Loading data through a file attachment is problematic in Reader and may be an issue in LiveCycle forms.XML is a native object in the core JS used in Acrobat. Look up E4X. If you have true XML text then you can simply evaluate it, as long as it does not contain an XML header. The Acrobat JavaScript model contains an object called XMLData. This is actually the LC xml engine, and is has a function, XMLData.parse(). You can look it up i...
1041
Views
0
Likes
0
Answers
Re: Checkbox won't start as "invisible" Thom_Parker - Adobe LiveCycle
The code I posted for the button click has nothing to do with making the check box invisible when the PDF is opened, it is only intended for the button. The visibility on open is a completely different issue. If you set the check box presence to "invisible" in LC Designer, then you open the PDF and the check box is visible, then there is code in the PDF that is setting it. The button click script is only run when the user clicks on the button, not on open. I would suggest deleting all references...
1111
Views
0
Likes
0
Answers
Re: Checkbox won't start as "invisible" Thom_Parker - Adobe LiveCycle
I prefer JavaScirpt because it is useful in many other places. That and LiveCycle is dead.Were there any error messages when you ran this code?You should concentrate only on the Visible case, cause anything else is invisible.if (adminPass == "123") then occ1.pesence = "visible"else occ1.pesence = "invisible"endif
1111
Views
0
Likes
0
Answers
Re: Checkbox won't start as "invisible" Thom_Parker - Adobe LiveCycle
So you must be using LiveCycle Designer? And are you writing in FormCalc? or JavaScript? Do you have a preference?
1096
Views
0
Likes
0
Answers
Re: Creating a document script for Clock in Acrobat Professional. Thom_Parker - Adobe LiveCycle
The reason I asked if you had a LiveCycle form is because the "JavaScript" options in Acrobat are only for AcroForms. They don't work on LiveCylce forms. I know this is a LiveCyle forum, but I wanted to be sure before getting into the code. The first thing you have to know is that LiveCycle Forms are edited in LiveCycle Designer. You can't add scripts to them in Acrobat. And, LiveCycle Designer does not install with Acrobat XI. In fact, the Acrobat XI installer will un-install LiveCycle Designer...
810
Views
0
Likes
0
Answers
Re: Creating a document script for Clock in Acrobat Professional. Thom_Parker - Adobe LiveCycle
It sounds like you have Acrobat 9 or earlier? And is this a LiveCycle form?In therory, clock code is very simple. It just writes the formatted time to a text field. But the details depend on the type of form, LiveCycle or AcroFormThom ParkerThe source for PDF Scripting Infopdfscripting.comAll About PDF Stamps in Acrobat and Paperless Workflows - THE BOOK!The Acrobat JavaScript Reference, Use it Early and OftenThen most important JavaScript Development tool in AcrobatThe Console Window (Video tut...
843
Views
0
Likes
0
Answers
Re: Dialog and decimal fields Thom_Parker - Adobe LiveCycle
I find the "numeric" designation for a field to be a distraction. Never use it. There is no way to control the formatting. You're best approach is to never allow an actual "Number" type value to be placed in a field.For example, if "mytx" is the id for a text field:This is the correct way to put a number looking value into the field dialog.load({"mytx":"2.50"});This is the wrong way to do it. dialog.load({"mytx":2.50});For the real thing use "util.printf()" to format the numbers the way you'd li...
889
Views
0
Likes
0
Answers
Re: Possible to link fields from two different PDF files? Thom_Parker - Adobe LiveCycle
I've looked into that technique before. It's a brilliant way to move data between the embedded files. But it's got some issues. 1. Data is only updated in the embedded forms then they are opened. If the document is closed before all the forms are opened there is inconsistencies.2. The global shared state is not restored when the package is opened, so files stay inconsistent.3. In Reader the Parent doc must be enabled for Embedding Rights in order to save data into the embedded forms. So, as pres...
1008
Views
0
Likes
0
Answers
Re: Hiding fields in a form Thom_Parker - Adobe LiveCycle
The "presence" property controls the visibility of form elements. This eseminar explains the details:http://adobechats.adobe.acrobat.com/p87746471/Thom Parker The source for PDF Scripting Info pdfscripting.comThe Acrobat JavaScript Reference, Use it Early and Often http://www.adobe.com/devnet/acrobat/javascript.htmlThen most important JavaScript Development tool in Acrobat The Console Window (Video tutorial) The Console Window(article)
772
Views
1
Like
0
Answers
Re: Possible to link fields from two different PDF files? Thom_Parker - Adobe LiveCycle
This is a question that seems to come up consistently. But there isn't a built-in or automatic way to link fields in different forms within a package. It's too bad because it's a great idea that Adobe should have been on several versions ago. Your idea of moving data from the parent PDF into the embedded files is a good one. It's more robust and easier to implement than trying to move data between the embedded forms. You'll need to put a button the parent form that runs a script to open each emb...
976
Views
0
Likes
0
Answers
Re: Sending a PDF form without a desktop email application Thom_Parker - Adobe LiveCycle
You can't put a variable directly into an URL. The URL has to be rebuilt dynamically in a script. In a way very similar to how you are modifying the email URL. Here are some articles on the topic.http://acrobatusers.com/search/google/submit?query=submit&cx=010702214422959725198:mrw4k197ftq&cof=FORID:11&sitesearch=Filter the results for the tutorials. In the articles there is also some JavaScript shown that you can use to do the same thing. For submitting dynamic URL info the JS is probably a bet...
1236
Views
0
Likes
0
Answers
Re: Can you define an event programmatically? Thom_Parker - Adobe LiveCycle
Very good stuff!! Do you know if this only works on initialization. I wrote similar code for modifying the template at runtime and it threw a security exception. But I was able to add event nodes with exactly the same code to the form model, not that it did any good. I could see the newly added event in the form model, but it did nothing.
999
Views
0
Likes
0
Answers
Re: Help With HTTP BUTTON Thom_Parker - Adobe LiveCycle
Yes, maybe. You've got a complex series of actions there, and whether or not they can be done depends on the details.First, there is a PostSubmit event, so yes, there is a place to put the code that will implement these operations.Next, if the form is Enabled for Save in Reader then it can be saved locally, but this operation can only be done silently from a privileged context, which a form script is not. But you can display a SaveAs dialog to the user and let them save it.And finally, a script ...
778
Views
0
Likes
0
Answers
Likes given to