since ‎16-07-2003
‎10-12-2019
Thom_Parker
Level 3
Re: How to call REST api using Javascript in Designer?
Avatar

Thom_Parker

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.

Views

1.6K

Likes

0

Replies

0
Re: How to call REST api using Javascript in Designer?
Avatar

Thom_Parker

Thom_Parker
- Adobe LiveCycle
You can call the Rest API from the NET.HTTP object.

Views

1.6K

Likes

0

Replies

0
Re: form logic calculation
Avatar

Thom_Parker

Thom_Parker
- Adobe LiveCycle
Is your form a LiveCycle Form?

Views

1.3K

Likes

0

Replies

0
Re: Create Form with Data Transferable When Modified
Avatar

Thom_Parker

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'...

Views

857

Like

1

Replies

0
Re: set multiple drop down list values effect to other form fields
Avatar

Thom_Parker

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.

Views

2.0K

Likes

0

Replies

0
Re: What would you recomand between Adobe Experience Manager Forms and Adobe Acrobat DC ? I need to obtain fill-in forms, editable
Avatar

Thom_Parker

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.

Views

7.6K

Likes

0

Replies

0
Re: Export PDF Formular into XML - Missing fields as tags
Avatar

Thom_Parker

Thom_Parker
- Adobe LiveCycle
Isn't there a livecycle forum for this type of question? This is not the forum.

Views

891

Likes

0

Replies

0
Re: Spawned Adobe Forms
Avatar

Thom_Parker

Thom_Parker
- Adobe LiveCycle
What do you mean my "disappearing"? The field is completely missing from the spawned page? or it's hidden?

Views

2.8K

Likes

0

Replies

0
Re: How to create a "sub-form" within a fillable PDF form to be distributed to users?
Avatar

Thom_Parker

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.

Views

6.4K

Likes

0

Replies

0
Re: How to create a "sub-form" within a fillable PDF form to be distributed to users?
Avatar

Thom_Parker

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.

Views

6.4K

Likes

0

Replies

3
Re: Multiple check boxs activated with one "group" check box?
Avatar

Thom_Parker

Thom_Parker
- Adobe LiveCycle
You're answer is in this threadSimultaneously check/uncheck two checkboxes with different names-always checked or unchecked together

Views

1.0K

Likes

0

Replies

0
Re: Dynamic addition of text fields in PDF form? (Acrobat Pro DC)
Avatar

Thom_Parker

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.

Views

5.5K

Likes

0

Replies

0
Re: Dynamic addition of text fields in PDF form? (Acrobat Pro DC)
Avatar

Thom_Parker

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.

Views

5.5K

Like

1

Replies

2
Re: Browse button using java script
Avatar

Thom_Parker

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...

Views

1.1K

Likes

0

Replies

0
Re: Browse button using java script
Avatar

Thom_Parker

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

Views

1.1K

Likes

0

Replies

0
Re: Browse button using java script
Avatar

Thom_Parker

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...

Views

1.1K

Likes

0

Replies

0
Re: Browse button using java script
Avatar

Thom_Parker

Thom_Parker
- Adobe LiveCycle
Why would someone have an older version of Reader? It's free

Views

1.1K

Likes

0

Replies

0
Re: Browse button using java script
Avatar

Thom_Parker

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...

Views

1.1K

Likes

0

Replies

0
Re: Checkbox won't start as "invisible"
Avatar

Thom_Parker

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...

Views

1.2K

Likes

0

Replies

0
Re: Checkbox won't start as "invisible"
Avatar

Thom_Parker

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

Views

1.2K

Likes

0

Replies

0
Re: Checkbox won't start as "invisible"
Avatar

Thom_Parker

Thom_Parker
- Adobe LiveCycle
So you must be using LiveCycle Designer? And are you writing in FormCalc? or JavaScript? Do you have a preference?

Views

1.1K

Likes

0

Replies

0
Re: Creating a document script for Clock in Acrobat Professional.
Avatar

Thom_Parker

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...

Views

830

Likes

0

Replies

0
Re: Creating a document script for Clock in Acrobat Professional.
Avatar

Thom_Parker

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...

Views

863

Likes

0

Replies

0
Re: Dialog and decimal fields
Avatar

Thom_Parker

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...

Views

904

Likes

0

Replies

0
Re: Possible to link fields from two different PDF files?
Avatar

Thom_Parker

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...

Views

1.1K

Likes

0

Replies

0
Re: Hiding fields in a form
Avatar

Thom_Parker

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)

Views

783

Like

1

Replies

0
Re: Possible to link fields from two different PDF files?
Avatar

Thom_Parker

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...

Views

1.0K

Likes

0

Replies

0
Re: Sending a PDF form without a desktop email application
Avatar

Thom_Parker

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...

Views

1.4K

Likes

0

Replies

0
Re: Can you define an event programmatically?
Avatar

Thom_Parker

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.

Views

1.0K

Likes

0

Replies

0
Re: Help With HTTP BUTTON
Avatar

Thom_Parker

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 ...

Views

783

Likes

0

Replies

0
Likes given to