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

Adobe Livecycle Scripting - Fill Table

$
0
0

Hi there,

 

Can someone help me with this example?

 

I am trying to append lines in a table without binding. I want to build a table by inserting line and manipulating them...

 

I've done this examples just to explain, it does not gives any error... bot also does not works.

 

But it does not do anything!

 

Thank you so much.

 

Kind Regards,

 

Wesley Massini

 

[Question moved to the LiveCycle Designer forum. -Mod]


Script fails after document has been locked

$
0
0

Hi ,

 

new to this, so please bare with me....

 

i created a document in LC ES 8.2.1.3144....

 

it works fine until i sign it electronically.

The issue occurs not after signing, but after locking parts of the document.

 

After that i get the Following message:

LC error after signing.JPG

In Document Linking - SetFocus

$
0
0

I'm building a document for a client and I'm using a SetFocus button to go from the top of the form to the bottom of the form.  However when you click the button and are brought to the bottom of the document the SetFocus location is sometimes at the bottom of the view.  Is there a way to set the view so that the destination I'm trying to link to is always in the center of the users screen?  Attached is the document and click the blue question mark next to "What is the nature of the business?" for any example.  Thanks.

 

 

https://www.dropbox.com/s/n9t8iqcuyxnf2u4/Due%20Diligence%20Questionnaire%20-%20Retirement -mkv10.pdf?dl=0

Insert a Fragment between Table Rows

$
0
0

Hello,

 

I have no coding skills and I am trying to build a dynamic form using LiveCycle and the internet (along with another colleague). We are building the dynamic form as a series of tables, where the rows are questions. The questions are structured to have yes / no answers, and when an answer is no, we want the user to be able to input a comment.

 

Currently, we can do this by brute force by building the table with the question as one row, the comment as a row under it. The comment row is hidden on initiation and shown when No is selected. It looks like this:

 

 

We would like to code this a little different to make it easier to revise, ect. I have been able insert a row "between" rows using code I found off this site:

 

var currentRepeatable = this.parent;

var im = currentRepeatable.instanceManager;

var newRepeatable = im.addInstance(1);

im.moveInstance(newRepeatable.index,this.parent.index +1);

 

However, this only inserts the row that the pull down box is on. I don't want to insert the same row. I want to insert the "Comment" row. So I did figure out how to insert a fragment. I made the comment row a fragment, and hid it. I can get it insert, but only at the bottom of the table. I am using code that looks like this (called when the drop down list is No):

 

_Comment.addInstance(1).presence= "visible";

 

Before:

After:

 

Is there a way to insert the fragment "between" rows? I have been trying moveInstance with no success.

 

Thanks in advance,

Shawn

 

Resetting form to original state/hiding subforms on reset

$
0
0

Hello,

 

I am banging my head against the wall with this one and I know the answer will be something simple.

 

I have a form where hidden subforms are made visible via a dropdown. I want my reset button to reset all the data in the form but also then make these subforms hide again - so taking the form back to its original state.

 

I can't figure out the script that goes behind the button. Would anyone kindly help?

 

Many thanks,

 

Nicola

Form Data is not visible

$
0
0

Hello,

We have created a number of forms using LiveCycle ES2, as part of the Adobe X Pro software. The forms worked fine for several years but now when the form is filled out and sent via email for signature, all data in the forms disappears. Data is visible on preview, but it turn in to zeros when the file its open.

 

The forms are filled out with the Acrobat Reader public version, then they are open for edits with Adobe Reader XI.

If this platform is no longer supported, is there current software I can obtain and use to convert the forms so they work properly, without recreating all of the forms we have developed?

Thank you.

XML Data Structure Hierarchy

$
0
0

All,

 

Full disclosure here, this is my first ever post to an Adobe message board, and I have been working with Adobe LiveCycle ES4 for about 2 solid months.  I have a separate program that will send a report file (in this case an Excel file) to a shared network folder, and I would like to leverage that data into my Dynamic form.  I have been using a XML tools add in, and developer tools in Excel to export an XML file I can use in LiveCycle.

 

Example Schema:

 

<?xml version="1.0" encoding="UTF-8" standalone="true"?>

-<Root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

     -<Row>

          <Thing1>ABCD</Thing1>

          <Thing2>1234</Thing2>

     </Row>

     -<Row>

          <Thing1>DEFG</Thing1>

          <Thing2>1357</Thing2>

     </Row>

     -<Row>

          <Thing1>HIJK</Thing1>

          <Thing2>2468</Thing2>

     </Row>

 

Again my JavaScript brain is still in it's infancy,  but in my form I theoretically want to import data and output a respective <Thing1> to at least one object text field, one called say <Thing1Field>.   Maybe dynamic binding isn't at all what i need to do in this instance, please read on.

 

What I am hoping, or attempting, to do is have an end user type a number into a number field called "Thing2Field". They click a button to get the corresponding <Thing1> in the same row as a matching <Thing2> outputed to a text field called "Thing1Field".  Make sense?  My fruitless attempts:

 

Root.#subform[0]::initialize - (JavaScript, client)

 

xfa.host.messageBox("Please select data to import to form.","Attention", 3,1);

xfa.host.importData();

 

Root.#subform[0].Button1::click - (JavaScript, client)

 

<all of the stuff>

 

I continue to bang by virtual Javascript head against the wall in trying to figure out what <all of the stuff> could be and where to start.  I am fairly certain if I can figure out how to get the imported data into a declared variable I can work that into a 'for' loop with some conditional statements in order to set the raw value of that text field.  My vocabulary isn't the greatest yet and a lot of the methods people come up with are amazing.  I am really looking for an example.

 

Some may ask why I am using the .importData(); method.  Long term in building this form I would like to create a representative node in which this imported data goes into.  I have read that importing data from XML goes directly into the root.data?? node.  If you were to import a second file it would overwrite the original becuase how the method and the DOM is setup. The data file I am working with in this example updates not so frequently and is in a different 'system' than another data file I would like to import.  This other file would update frequently and has a lot more data present, it wouldn't be bound to the form but I need to call on the data to populate certain fields from it. 

 

I am aware LiveCycle allows multiple instances of database connections through SQL and such, which we are moving toward, however I need to get a current working model to allow us to prove viability.  Any help you could provide would be of great assistance.  Thanks in advance for your time.

 

Alex

Adding variable Value into Email Submit Button

$
0
0
Hi,

is it possible to dynamic add an variable Field Value, (text field value from the form) into the Email Subject Field of the Email Submit Button?

Another question is if it is possible to add the Email address?

regards
Johannes Lehninger

store dropdown value to var on form load

$
0
0

I have several forms I'm trying to build and use dropdown fields in.  The forms work great up to a point, they store the user selected values when entered and saved, when reopened the form dropdown shows the saved value.  I am trying to use code to fire after the form opens and use the saved and visible dropdown value which loaded into the field via a function or with code.

 

I'm trying to read the saved value after it reopens and have tried unsuccessfully to use a lot of event.  I find it hard to believe the value is not  available

 

//doesn't retrieve any value if called from field events initialize, calculate, validate, postopen, docready, ready:form
var myrawValue = this.rawValue 
var myValue = this.value 
xfa.host.messageBox(myrawValue + " --> " +myValue ,"Show DropDown Values", 2, 2);

 

function fShowSign() 
//Called from the field Change Event  
{
//called from the field change event works great!
//doesn't retrieve any value if called from field events initialize, calculate, validate, postopen, docready, ready:form
var oldValue = LP.Pg1.Pg1Ft.cboSigner.boundItem(xfa.event.prevText);   
var newValue = LP.Pg1.Pg1Ft.cboSigner.boundItem(xfa.event.newText);  // For DEBUGGING purposes
 xfa.host.messageBox(oldValue + " --> " +newValue ,"fShowSign", 2, 2);
 // show the appropriate subform
 switch (newValue) {  case "2":    xfa.resolveNode("LP.Pg1.Pg1Ft.sfrmSign1").presence= "visible";   xfa.resolveNode("LP.Pg1.Pg1Ft.sfrmSign2").presence= "visible";   xfa.resolveNode("LP.Pg1.Pg1Ft.sfrmSign3").presence= "hidden";  break;  default:  // hide all    xfa.resolveNode("LP.Pg1.Pg1Ft.sfrmSign1").presence= "hidden";   xfa.resolveNode("LP.Pg1.Pg1Ft.sfrmSign2").presence= "hidden";   xfa.resolveNode("LP.Pg1.Pg1Ft.sfrmSign3").presence= "hidden";  break; 
} 
}

 

function fSignLoad()
{
//doesn't retrieve any value if called from field events initialize, calculate, validate, postopen, docready, ready:form
var myValue = LP.Pg1.Pg1Ft.cboSigner.boundItem(xfa.event.change);    // For DEBUGGING purposes
 xfa.host.messageBox(myValue + " --> " +myValue ,"fSignLoad", 2, 2);
 // show the appropriate subform
 switch (myValue) {  case "2":    xfa.resolveNode("LP.Pg1.Pg1Ft.sfrmSign1").presence= "visible";   xfa.resolveNode("LP.Pg1.Pg1Ft.sfrmSign2").presence= "visible";   xfa.resolveNode("LP.Pg1.Pg1Ft.sfrmSign3").presence= "hidden";  break;  default:  // hide all    xfa.resolveNode("LP.Pg1.Pg1Ft.sfrmSign1").presence= "hidden";   xfa.resolveNode("LP.Pg1.Pg1Ft.sfrmSign2").presence= "hidden";   xfa.resolveNode("LP.Pg1.Pg1Ft.sfrmSign3").presence= "hidden";  break; 
} 
}

Date picker with auto today's date

$
0
0

Hey,

 

I'm sure this has been asked and answered, but I couldn't find it in the search. I have a date/time field which is excellent for using the date picker to insert any date. But more often than not the form will use the current days date. Is it possible to have the Date/Time Field default to the date of the day the form was opened and STILL have the option of overwriting it with the picker?

 

Thanks.

Datepicker and future dates

$
0
0

I work with court forms and ES3. Some future dates are +20, +30. Unfortunately, LiveCycle's built-in date field provides a date picker that understands a year where the last two digits are over 30 as "193x" and not "203x". How do I get around this?

Dynamic Default Value for Date/Time Field

$
0
0

I am creating a form for applicants to a selective program.  To be competitive for selection, applicants need to have worked in our industry for 3-7 years after graduating with their bachelor's degrees.  I want the user-entered graduation date field (Date/Time field type) to default to a value that is roughly 5 years (1825 days) before the date in which they are entering the data, and I want the user to see an empty field until they select it to enter their graduation date.  Initially, I created a static default value in the "Value" tab, but that value is displayed when the form is generated, which I don't want.  Then I tried adding the following code to the "enter" event of my graduation date field, but it also didn't help:

 

 

form1.#subform[0].ServiceDate::enter - (JavaScript, client)

 

if (this.rawValue ==null){

 

  this.rawValue = (d.getDate() - 2190);

}

 

I appreciate any recommendations.  Thanks!

 

LiveCycle generated document will not save check boxes when saved via automation

$
0
0

Upating a PDF file using Adobe SDK and VB.Net.  Text and Date fields update and save without any problems, but Check Boxes will update, but not save.  If I display the PDF file after updating the Check Boxes are checked, but after PDF file is saved they are not checked.  The PDF file was created with LiveCycle.  To test my program I created a PDF file with Acrobat.  The Check Boxes update and save on the PDF created with Acrobat, but the Check Boxes do not save on PDF created with LiveCycle.  Is there a different method to upate/save Check Boxes on a PDF created with LiveCycle?

Check Box value not saving

$
0
0

Upating a PDF file using Adobe SDK and VB.Net.  Text and Date fields update and save without any problems, but Check Boxes will update, but not save.  If I display the PDF file after updating the Check Boxes are checked, but after PDF file is saved they are not checked.  The PDF file was created with LiveCycle.  To test my program I created a PDF file with Acrobat.  The Check Boxes update and save on the PDF created with Acrobat, but the Check Boxes do not save on PDF created with LiveCycle.  Is there a different method to upate/save Check Boxes on a PDF created with LiveCycle?

How would you use a javascript function to format all buttons

$
0
0

How would you go about using a function to change button format in one place?  I think the function needs to identify which button called it instead of using "this"?

Currently I put code in each buttons events see below for a sample.

LP.Pg3.PgBody.rowSFrmLP.sfrmBtn.Remove::mouseEnter - (JavaScript, client)

 

// set caption to red and underlined

this.caption.font.underline = "1";

this.caption.font.fill.color.value = "255,0,0";

 

  

 

LP.Pg3.PgBody.rowSFrmLP.sfrmBtn.Remove::mouseExit - (JavaScript, client)

 

// set caption to black and no underline

this.caption.font.underline = "0";

this.caption.font.fill.color.value = "0,0,0";

 

 

I would like to do something like the following code assigned each button to make it easier to maintain and I could simply change the function to change all the buttons formatting at once.

 

function fMouseIn()
{
// set caption to red and underlined
 this.caption.font.underline = "1"; 
 this.caption.font.fill.color.value = "255,0,0"; 
}
function fMouseOut()
{
// set caption to black and no underline
 this.caption.font.underline = "0"; 
 this.caption.font.fill.color.value = "0,0,0"; 
}

 

LP.Pg3.PgBody.rowSFrmLP.sfrmBtn.Remove::mouseEnter - (JavaScript, client)

 

sFrm.MouseIn();

 

  

 

LP.Pg3.PgBody.rowSFrmLP.sfrmBtn.Remove::mouseExit - (JavaScript, client)

 

sFrm.MouseOut();


How to create a small DataMatrix barcode

$
0
0

Hey guys, I have a question on creating DataMatrix barcode with LiveCycle Designer ES4. I need create a DM barcode on a 5mm*5mm size page, which means the barcode's size must be smaller than that. But no matter how I adjust the size, it's always get a yellow lightning sign, saying that 'insufficient space on the form for the pasted content'.  What should I do? Thanks a lot. (Hope my poor english have described the question clearly)

How to duplicate or mirror dynamic subforms or tables and its filled in cells

$
0
0

I have been building forms with multiple dynamic subforms and  tables.  I am fairly comfortable with the correct way to add, delete and move rows in the dynamic subform or table.  I have been asked to make a multipage form that has identical repeated information on a few pages.  Instead of the user having to reenter the information on each page I would like to use the first table that contains the user entered rows and data to build the second and third copy.  Ideally these would simply mirror as the user add, deletes, or moves a row or data but if necessary a button or event could be used.  I found a few old discussions that appeared similar but none of the links to examples worked.  Any advice, samples, or explanations would be appreciated.

Adobe lifecycle designer for windwos 10

$
0
0

Hi,

We have a old version of Lifescyle designer ES2. Now we are migrationg all computer to windows 10. Which version I need to download for windows 10?

Where can I find the download link?

Could you please help?

Regards

How can i clone a object in livecycle designer by pressing a button

$
0
0

Hello I am new to adobe livecycle and to js and I would like by pressing a button to clone a object that contains a subform and add it under the original object in the form.

Thanks

Can`t find object in hierarchy

$
0
0

Hello, I am working on a form built by someone else...I have a object that is mentioned in another object`s event but i can`t find that object in the hierarchy. The object is defined and working. How can I find it`s path ? Is there any command to find it`s path ? Thanks

Viewing all 5571 articles
Browse latest View live


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