since ‎22-12-2011
‎10-12-2019
davidcornett
Level 2
Creating a pool of interchangeable questions for LC form
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Hi,We currently have a dynamic application that presents questions to the user depending on previous answers (and user class). However, it is becoming a pain to cycle questions in and out in LiveCycle, as this requires a manual insertion of subforms.The concept is to have the existing application, and a larger pool of questions that can be easily inserted into the application.Can "fragments" help with this? (this is one area I don't have much experience with)Could the end result conceivably easy...

Views

439

Likes

0

Replies

1
LCD 3 Reader Enablement
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Can you save as "Reader enable" a LiveCycle form using Acrobat XI just as you could using AX? Or must you buy the LC Reader Extensions server to allow the Reader user to save filled-in data?We currently have AX and LCD 2, and create forms in LCD2 before opening in AX to reader enable. I'm concerned that since adobe is decoupling Acrobat and LiveCycle, that you can't use Acrobat in this capacity.

Views

928

Likes

0

Replies

1
Re: Possible to use JavaScript to Import Data from XML file to pre-fill fields?
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Interesting, Niall. Is that solution on your website for download or is it proprietary? I looked on the PDFscripting website, and they have developed a folder-level script that adds a new toolbar element in Acrobat that shows a combo box of options (clients, for example) that when the user selects the form pre-fills accordingly. So I know it's possible, and I'll see what I can put together.

Views

191

Likes

0

Replies

0
Possible to use JavaScript to Import Data from XML file to pre-fill fields?
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Hi,I have a dynamic fill-in PDF that I want to "pre-fill" internally in my company before sending out to users who will change any pre-filled fields necessary and answer questions we did not already answer.We do not have LiveCycle Reader Extensions, but we can use Acrobat to import data from an XML document to pre-fill the named fields. Is it possibly to do this task using folder-level Javascript or some other method? I can look into this, and post my findings, but I'd like to know if it's possi...

Views

1.7K

Likes

0

Replies

3
Re: Best way to reset all form fields EXCEPT for 1
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
That worked perfectly, and was much simpler than the solution I was envisioning. Thanks!

Views

747

Likes

0

Replies

0
Re: Best way to reset all form fields EXCEPT for 1
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
I'm guessing that a for loop will do the trick. For any field that is "open", reset. My Calcuated field is "readOnly". I'll implement this and post my results.Edit: actually, since my calculated field is on its own page (no user input there) I'll make my loop apply for any field not on that page.

Views

541

Likes

0

Replies

0
Best way to reset all form fields EXCEPT for 1
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Hi, I have a button with this on the click event:xfa.host.resetData();However, there's one field that related to form mechanics and not the user interface that calculates a number of days. I want that calculation to remain after resetting all form fields. How can I most efficiently do this?Thanks!

Views

2.1K

Likes

0

Replies

3
Setting subject in submitForm function
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Hi,LiveCycle's purpose-built submit buttons don't allow programming so I've made my own data submission button.Here's the code on the button's click event:var email = ************;event.target.submitForm({ cURL: email, cSubmitAs:"XML", cCharSet:"utf-8"});So it functions as I want it to except that it uses a default subject of the xml file name. It's going to an email address, not a server, so for the purpose of possible debugging, I'd like to be able to have a dynamic subject field. Using the ev...

Views

457

Likes

0

Replies

1
Remove an object from PDF-generated XML file
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Hi,In a stage of user workflow of my PDF, the user presses a submit button that sends XML data to an address. There's an image field that has hundreds of lines of XML code that has no need to sent. In fact, by the time this submit button is pressed, the image field is already "hidden", but of course it remains on the form.Is there any sort of visibility or access property that will supress an object enough that it doesn't transfer with XML? How about dynamically deleting a field on the user-end?

Views

462

Likes

0

Replies

1
Opening PDF in IE "breaking" for loop
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Hi,I have a dynamic PDF that is uploaded to a website. When the PDF opens, the user has to fill in certain fields before clicking the "Next" button. Upon clicking the Next button, I have a JavaScript function that sets certain fields access to required and then runs a for loop to check if any are empty. The next event is setting those fields access back to optional. Lastly, a popup window refers the user to the empty fields (fields are shaded red, but not their borders).The problem occurs for on...

Views

280

Likes

0

Replies

0
Re: How do I reset a mandatory field after it has been filled in?
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Interesting, when using the required fields function even in a blank form, the fields still have red borders even after the user enters something. Only the following script works: if (this.rawValue != null) { this.mandatory = "disabled"; } else {this.mandatory = "error"; }This has to be placed on all fields though, or you could make a Script Object function and call it from every field. I know in earlier versions you could "propagate" exit events to cover all fields, but I only know how to do th...

Views

243

Likes

0

Replies

0
Javascript for changing file name
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Hi,Is it possible to programmatically change a form's file name? I got this idea while doing a function in VBA (where this is definitely possible).I was thinking of something like this:event.target.documentFileName = textfield1.rawValue;The context is that I have a non-distributed form that is submitted via email (I programmatically generate default email body, subject, and recipient). But the user can (and does) save the file name whatever name they want. Now, my forms "know" if they're submitt...

Views

3.2K

Likes

0

Replies

1
Re: reference current node, not parent in function
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
I found out what was causing the problem was my own misunderstanding of the loop variables. currentElement is designed to be the child of wherever the function is called from. So I changed the if/then statement in the function to affect currentElement's parent: if(currentElement.className === "subform") { if (xfa.resolveNode("form1.Page1.Page1.#subform.institutiontype").rawVal ue == 😎 { currentElement.parent.presence = "visible"; } else {currentElement.parent.presence = "hidden"; } }

Views

251

Likes

0

Replies

0
Re: reference current node, not parent in function
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Ok I have a feeling the problem lies in my loop itself (as I said I adapted it from another use).Is it due to how I'm defining the variable currentElement? I think it's referencing myParentObject.nodescurrentElement = allChildElements.item(i);allChildElements = myParentObject.nodes;

Views

240

Likes

0

Replies

0
Re: reference current node, not parent in function
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Well, my first inclination was to try:SegmentScripts.Indie(this);on the subform that I want to disappear. This seems to only hide subforms UNDER it in the heirarchy and not it itself. So it works as long as I have subforms under it but if it's the lowest subform child in the heirarchy then it doesn't work.

Views

234

Likes

0

Replies

0
reference current node, not parent in function
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Hi,When calling a function that hides/shows subforms, I can only seem to progress up in the heirarchy to parent(s).Here's how I call the functionSegmentScripts.Indie(this.parent);The problem is that if I place the "call" on a subform I'm trying to hide, it will hide sibling subforms unecessarily. If I place the call on an object within the subform, it erratically flows up several subform layers instead of its direct parent. Is there a way to place the call on the subform I want to hide itself, w...

Views

1.3K

Likes

0

Replies

4
Re: Hide all subforms using a for loop function
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Srini,I have one follow up question. If I only want a single subform to be hidden (and not its parent), how can I do that? The reality of my form is that the subforms I want hidden are not all within the same parent, and other sibling subforms will have a different script.I tried to call it using these ways:Common.HideSubforms(this);Common.HideSubforms(this.nodes);I'm not really sure what to do here; I could just wrap the needed subform in its own subform (bumping it "down" in the heirarchy) but...

Views

323

Likes

0

Replies

0
Re: Hide all subforms using a for loop function
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Thank you so much Srini!

Views

251

Likes

0

Replies

0
Hide all subforms using a for loop function
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Hi,I have a basic check that shows or hides a subform based on if a checkbox has been checked or not.if (checkbox.rawValue == 1) {this.presence = "visible";}else {this.presence = "hidden":}Now, this checkbox controls the visibility of multiple subforms, so I would like to have a function on a script object that I can call from each subform's calculate event.I named the script object "Common". At first I tried just an if/then statement such as above, but "this" is meaningless in the function. So ...

Views

1.8K

Likes

0

Replies

3
Re: Possible to name individual radio buttons in exclusion group?
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
So you had 3 rawValues export over? The way the test PDF is set up, there should be 4 field columns (1 being null). Well, if it's some bug on my version, at least I have the work around of keeping the buttons unamed.

Views

203

Likes

0

Replies

0
Re: Possible to name individual radio buttons in exclusion group?
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Thanks Jono, that site is pretty useful. I published the test PDF and an export spreadsheet.Here's a link to the radio button PDF:https://acrobat.com/#d=JE7dTTEv41rIY9UFqy9LBAExported data spreadsheet:https://acrobat.com/#d=NOR2DMV8WPDV38uvKgvnXQI created the PDF in: LiveCycle Designer ES 2I reader-enabled the PDF in:Acrobat Pro XI'm curious if you can replicate my result. I'm afraid it is some sort of bug.

Views

206

Likes

0

Replies

0
Re: Possible to name individual radio buttons in exclusion group?
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Jono, I see that Acrobat X has the SendNow function. Perhaps there is a way to upload to Acrobat.com but it only allows an email address input. I know v9 had the collaborate Icon allowing for direct upload but cannot find if on X anywhere. Comment>Review>Send for Shared Review will only work for non-interactive forms (this example PDF has radio buttons). Am I missing something? I feel that Adobe is making this difficult to sell value-add services.

Views

201

Likes

0

Replies

0
Re: Possible to name individual radio buttons in exclusion group?
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Thanks Niall, I think that is a good practice. But it seems that if I have an outside object that references that excl group, I have to give the SOM of the specific radio button rather than the group.

Views

204

Likes

0

Replies

0
Re: Possible to name individual radio buttons in exclusion group?
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Hi Jono,Can I attach a sample PDF or email it to you? I recreated the problem with 3 exclusion groups on blank PDF.They all have specified values (1,2).The first excl group has Exclusion group AND Buttons named-its data does not appear on spreadsheet.The 2nd and 3rd have opposite items named (one has to be unamed)-data does appear, but in different ways.So strange!

Views

201

Likes

0

Replies

0
Possible to name individual radio buttons in exclusion group?
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Whenever I name these radio buttons, their rawValues do not export to Excel using the "Merge data into a spreadsheet" function in Acrobat. So I've just named the overall exclusion group and left the individual buttons as "untitled radio button".I have an exclusion group of 9 radio buttons, and other objects and subforms in my form reference these radio buttons. It's quite annoying to have to use xfa.resolveNode in if/else statements as it's difficult to keep track of them.Has anyone ran across t...

Views

2.7K

Likes

0

Replies

13
Re: Radio Button names are lost when merging into spreadsheet
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
I had the same problem; hopefully my solution will be of help to anyone searching this problem via a search engine.http://forums.adobe.com/message/4347266#4347266Individual radio buttons cannot be named (only the overal exclusion group can be named) or else rawValues will not export.

Views

90

Likes

0

Replies

0
Re: Exclusion group values not exporting to "Merge Data" spreadsheet
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
For anyone else struggling with this, here's how I went wrong:I named the individual radio buttons on the hierarchy pallete. For reasons unknown to me, they MUST be left as "(untitled radio button)" . I had designated names such as "yes", "no", and some multiple choice answers. RawValues only export for these if they are left with their default unititled names. The exclusion group itself can be renamed of course-that seems to have no effect on the issue.Just an example of some baffling programmi...

Views

111

Likes

0

Replies

0
Re: Exclusion group values not exporting to "Merge Data" spreadsheet
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
I do specify item values (1 for Yes, 2 for No) and the Data Binding is "Use name (ERMyesno)"The radio button list name is ERMyesno.

Views

112

Likes

0

Replies

0
Re: Calling a function to perform multiple actions
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Solution:When referencing form objects from a script object function, you have to use the absolute reference. I thought I could use Control-click since the script lies on the root node; that was incorrect. Control-Shift-Click brought the correct reference.function a(form1){xfa.resolveNode("form1.Page1.....}As you can see, not having form1 disabled the entire function.

Views

104

Likes

0

Replies

0
Re: Calling a function to perform multiple actions
Avatar

davidcornett

davidcornett
- Adobe LiveCycle
Ok let me refine/simplify my question.I can call the function if the target objects are in a named subform...but if they have to be looked up the function will not work.For reference, here's the actual function script: function a(form1) {xfa.resolveNode("Page1.Page1.#subform.flowedsubform.contacts.brokeragename").rawValue = null; }I assume I need to use something different than "form1". Any ideas?

Views

103

Likes

0

Replies

0
Likes from