Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all 5571 articles
Browse latest View live

Can you make an enter event in topmostsubform that gets the field name of any field thats entered

$
0
0

Looking for some help.

 

I have a modified Enter Event I'm trying to use. What my expected results are: When you click on a field on the PDF, it would open up a certain webpage or file depending on what field is entered. I currently have:

 

if (xfa.host.name == "Acrobat") {

          app.launchURL("www.cnn5.com" + "/" + event.target.documentFileName + "&" + this.name, true);

}

else {

          xfa.host.gotoURL("www.cnn5.com");

}

 

In this example, i'm using a bogus address obviously. "event.target.documentFileName" gives me the PDF name which is what I want, but I need to scrub off the ".pdf" at the end of it. I know I can use this in every field that I want it in, but I'm looking to see if I can get this code in just the topmostsubform only due to having hundreds of forms I might be using this form and to save time.

 

When this is used in the topmostsubform, it gives me the URL: "www.cnn5.com/PDFname.pdf&TopmostSubform" no matter what field i click into. Is there something i can change this.name to? Any help would be greatly appreciated.

 

Also, i'll need to have this event to be able to use multiple times, because currently in the topmostsubform, it only activates on the first field that I enter and doesn't activate on fields after that. Suggestions please? Thank you


Set a parent subform presence to "hidden" if the children are not there.

$
0
0

Hi, I would like to completely erase from the layout a subform if it's children are not there because of the binded data not allowing them to be there.

 

The problem I'm facing is, that when the children subforms do not appear due to their bind condition not met, it's like they don't even exist, I can't even check if they are null, seems like the Javascript editor throws an error I guess.

 

Any ideas?.

 

Thanks.

Object is "null" when form is rendered in HTML

$
0
0

My problem is that there are certain objects in my form (subforms, text fields and radio buttons) which, when rendered in HTML, xfa.resolveNode returns "null" and so cannot have their properties set to the required values.

 

The form is made up of a few subforms which consitute the main sections. Two of those subforms return null when I use xfa.resolveNode. Then, there are a number of objects such as text and radio buttons which I cannot access for the same reason. They return "null".

 

I would like to point out the same form works fine when previewed as a PDF in LC which is why I am so confused! What could make HTML have trouble resolving those objects? Are there any special requirements?

 

Any help would be greatly appreciated.

 

Thanks

JavaScript Execution

$
0
0

Hi,

 

I am working on a static xdp template and stuck at a point where JavaScript doesn't work anymore.

 

I am trying to show/hide subforms depending on the values of XML nodes in the XML file.

 

I have tried the following:

 

- Get the values of XML nodes form the XML file and store it in a variable.

 

For example:

 

var test = xfa.data.resolveNode("Document.Data.General_Information...").value;

if(test == "yes") {

     //show subform

} else {

     //hide subform

}

 

It looks simple but i have to get the values for 400 variables and if a node is missing from the XML file javascript breaks at that point and doesn't process or get the values for rest of the variables.

 

example:

 

var 1 = xfa.data.resolvnode.....

var 2 = xfa.data.resolvnode.....

var 3  = xfa.data.resolvnode.....

var 4 = xfa.data.resolvnode.....

 

if a node is missing in the XML file at var 2, javascript doesn't execute or get the values for var 3 and var 4.

 

How do I solve this problem? Any suggestions?

SumIf in an expanding table

$
0
0

Hi, I'm creating an expense report that has an expanding table. You can download it using the link here.

 

https://www.dropbox.com/s/r7qnaegkkx7a57h/Expense%20Form.pdf

 

Everything I have so far works fine. You can add as many entries as you want and it provides a grand total.

 

I'm stuck with the next step. At the bottom, I need to list all the categories in the "type" drop down, and I need to do the excel equivalent of a SumIf. So if the "type" category for the "Actual Expense" Table is "Lodging", I need a field at the bottom that says Lodging with the subtotal for all entries marked as such. If there were three Lodging entries anywhere on the table for $10 each, I want a field at the bottom that would say  "Lodging: $30".

 

Since I've taught myself everything I know on all my forms till this point, I'm stuck. Any help would be appreciated!

Form Automatic Numbering

$
0
0

Is it possible with a LiveCycle form that is not connected to a database, to automatically have a unique sequential form number populate a textfield when the form is opened? This would be the number that identifies that version of the form.

Multiple line search and replace

$
0
0

Hello,

 

I was wonder if you can do a multiple line search and replace in either the xml source or on script event?

 

For example search for

if( i = 1){

     a = "fixe";

 

 

replace with

if( i == 1){

     a = "fixed";

}

 

I have a few forms where we should have used functions and didn't and have the same code multiple times on a form and needs to be updated.

 

Brad

How can I set up a 2 column layout in LiveCycle?

$
0
0

Hi,

 

I'm new to working with LiveCycle Designer. I'm using version 10.4, the OEM version bundled with SAP. Aside from being quite buggy, the capabilities seem pretty similar to LiveCycle Designer ES4, which I downloaded in a trial version. All of which is to say that this is a newbie question.

 

I cannot, for the life of me, figure out how to set up a 2-column layout.

 

On my master page, I have two content areas.

When I create a new page, I am able to drag fields into the first content area I created, but not into the second content area.

 

What am I doing wrong?

 

Thanks,

 

Janet


How to expand multi-line fields in pdf forms?

$
0
0

I have a FormsCentral PDF form, which allows users to fill out the form and save as a PDF. However, after receiving the completed forms, I am unable to see all the text in the multi-line field boxes without opening them and scrolling down. Since I will be sharing several of these competed forms with a review panel, I would like to:

1) Display the entire content of the multi-line field boxes rather than having the reader scroll down, then

 

2)  Save the completed forms so that its read-only when I send it to the review panel

 

I am not collecting responses via FormsCentral. I am just receiving the PDF via email.

 

I was told I could edit the PDF forms and expand the multi-text fields in Adobe LifeCycle Designer. I have never used this software before, can someone please instruct me how to do this?

 

I am in desperate need of help!

 

Thank you!

When selecting a floating field to change details (name, binding etc), automatically changing field?

$
0
0

Hi,

 

I am having some issues when trying to select a floating field to change its binding, it will be highlighted until I click to change the binding in objects it will automatically change the selected floating field to a differant one. Any assistance would be appreciated.

 

Cheers,

 

Jared

Script Logic Printing Form (image included)

$
0
0

Hello and thank you in advance for your help!

 

Here is what I need accomplished:


I have a Yes/No radio button with a separate textfield (called "txtEmailPublished") to the left of it.

 

When the user clicks the Yes button, the textfield should be visible on the PDF as well as APPEARS on the PRINTED PAGE when user uses the print button to print it.

 

When the user clicks the No button, the textfield should be visible on the PDF but DOES NOT APPEAR on the PRINTED PAGE when user uses the print button to print it

 

Button.png

 

Here is what my issue is:

 

When I set the textfield's .relevant = "+print" and the .presence = "visible" properties, the textfield disappears. I have been playing around with several options (within the radio buttons and print button itself) but can't seem to get it the way the Client needs it to be.   Any help would be appreciated it!

Hide custom borders when printing

$
0
0

I would appreciate if anyone has managed to solve the problem of hiding custom borders when trying to print.

 

I can hide 'Sunken Box' borders using the this.ui.oneOfChild.border.edge.presence+"invisible";

 

But as I want to use customised borders this will option will not work.

Locking Text after a Digital Signature

$
0
0

I have a form that requirees 3 digital signatures. I want all the entered text to lock after the first digital signature, but still allow the other two to digitally sign.

Import XML data at load of PDF form

$
0
0

Not sure that this is the correct forum, but it looks like a good place to start.....

 

This is my question:

 

At this moment we use an MS Excel file that runs a macro at startup that imports fielddata from an external xml-file. So, a user that opens the Excelfile will not have to fill in customer-data that is supplied by the xml-file. It is automaticly filled. For example Customer name, address, postcode etc.

 

Now, we have created a simular form in Adobe Livecycle, but we cannot get the xml-data to be imported just like the Excelfile does.


Is it possible, and how is it done, to open a pdf-form, import data from an external xml-file, all without user interaction?

 

Hope that my question is clear. Please advise

Hyperlink in a paragraph list

$
0
0

Just experienced something that seems odd.

 

I have a plain text field with a fair amount of text. I inserted a hyperlink to a phrase in the text field and the link worked fine. Later I added some formatting to the text field, including using the list function to define some of the items as a bullet list. However, once I did that, the link becomes non-functional.

 

Am I doing something wrong?


Can you create GS1 DataBar Expanded in LiveCycle

$
0
0

I have Adobe Acrobat 9 pro and was trying to create GS1 DataBar Expanded barcodes.

Since I was limited to just 3 barcode types I hit the forum and found out about LiveCycle.

Even in LiveCycle through Adobe Acrobat 9, I don't see the GS1 barcode I need.

I've tried to manupilate what is available, but that will not work.

I found a plug-in for Adobe Illustrator that has the Barcode, but Illustrator + the plug-in software is a little expensive.

My question as stated in the beginning is can you create GS1 DataBar Expanded barcode through Acrobat? In this situation through LiveCycle? Is there a plug-in through Acrobat or LiveCycle that will include the GS1 DataBar barcode?

Unable to edit Current Date field

$
0
0

Hi,

 

I added the currect date field into my form and I want the user to have an option of editing it when they download the form. I tried switching the "Type" in value tab to 'Calculated - User can override' and when I open the form in pdf mode current date appears and there is a drop-down for calndar. When I select a different date there, the current date doesn't change and it remains as it is.

 

Please help me with this.

 

Thanks.

How to change the index (?) (position of subforms inside other subforms) using code?

$
0
0

Hi, let say I have something like this (flowed positioning):

 

Main subform

     subform A

     subform B

     subform C

 

And I want, by code to change them to:

 

Main subform

     subform C

     subform A

     subform B

 

 

How can I do that?

 

Thanks.

"The som expression '$. for the dataRef specified on field 'field', resolved to an incompatible...

$
0
0

Node type of dataGroup, is what follows that error.

 

It's strange, every single field is mapped just fine, it only happens with a particular one.

 

Any ideas?

master details tables and no xml data source

$
0
0

Hello

 

I want to create mater - details tables where details table will be repeated for each master row.

 

So i created master table and placed detail table into master table cell.

 

so what i want to have

 

product1 quantity

                          - item1

                          - item2

product2 quantity

                          - item3

                          - item3

 

for now i have

 

product1 quantity

                         - item1

                         - item2

                         - item3

                         - item3

 

product2 quantity

 

 

 

here is how i fill the table

 

for i in 1..5 do

        [

            ("Cell1r", "quantity" + i.ToString())

            ("Cell2r", "product" + i.ToString())           

        ] |>p

   

        for j in 1..2 do

                [                   

                    ("Cell11", "product" + i.ToString())

                    ("Cell21", "serial" + j.ToString())

                    ("Cell31", "function" + j.ToString())

                ]|>p

 

i found an axample how to do it from xml data sourcem but have no idea and did not find how  to do it manualy(when i bing by name from code dynamicaly)

 

master-details table.JPG

Viewing all 5571 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>