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

Below Code works great but counter still shows 1 even there is no empty filled

$
0
0

Below is the code to get the empty filleds (counter);

form1.Page1.notification.NumericField1::ready:layout - (FormCalc, client)

var FilledRows = 0

for i = 0 upto Body.Table1.Row1.instanceManager.count - 1 do

     if (Body.Table1.Row1[i].drp_names eq null) then

          FilledRows = FilledRows + 1;

          this.rawValue = FilledRows;

     endif

endfor

 

the code in Javascript to check if the value of the counter is zero

form1.Page1.save_as::click - (JavaScript, client)

   if (notification.NumericField1.rawValue == 0){

  xfa.host.messageBox("This will save your form as PDF form, means you can edit later once more","Save As Form",3,0);

  app.execMenuItem("SaveAs");}

else

{xfa.host.messageBox("You have : " + notification.NumericField1.rawValue + " empty highlighted fields","Empty Fields",3,0);}


need buy live cycle designer

database connection

$
0
0

hello,

i hade made a form with adobe livecycle designer.. i also connect it to ODBC database... i have added buttons to the form like (next, previous, last, save)

my question:

 

when i enter a new data to the form and press on save button the data i entered disappear and not saved to the database..

 

how can i make save button and add button works probably, please help me

 

thanks

dropdown box - option line break

$
0
0

Is there a way to add a line break to a drop down box?

 

Or change the width of the drop down box when the user clicks to view options?

 

Some of the text I have is very long and you cannot read it all.

Making a field mandatory only when visible?

$
0
0

Hi

 

I want to make fileds only mandatory when they are visible

 

I thought this code would work but it doesnt seem to do anything?

 

Here is my code currently - any ideas guys?

 

if (form1.Page1.DropDownList1.presence == "visible") {

form1.Page1.DropDownList1.mandatory = "error";

 

}

if (form1.Page1.DropDownList1.presence == "hidden") {

form1.Page1.DropDownList1.mandatory = "disabled";

 

}

 

Thanks in annnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnticipation!

 

Ellis

Bullet lists not apearing properly in AEM LiveCycle Designer 6.1

$
0
0

I have a form that was developed using Designer ES4.  The form has a text field that contains a bullet-ed list. When I open the form in AEM Designer 6.1, the list is no longer bullet-ed and the text in the list shows as a single line.

 

Is this an issue with AEM Designer or does it handle lists differently.

 

Thanks.

Dynamic Table Sum Not Calculating on Commit

$
0
0

I am using the below code to sum a dynamic table.  Each time I add a second "Table1.Row1" row, and select the value that would render countU ==0 true, the Livecycle form will not re-calcuate the query correctly unless I re-select the first row "Table1.Row1" countU value.  In other words, the dynamic table has two levels of expansion.  When I try to add more row under each primary row, the calculation does not automatically run.  Any suggestions?  Thanks in advance!

 

 

var sumD = 0;
var countS = this.resolveNodes("TableA.Row1[*].Subform2[*].Table1.Row1[*].MBRS");
var countT = this.resolveNodes("TableA.Row1[*].Subform2[*].Table1.Row1[*].NON");
var countU = this.resolveNodes("TableA.Row1[*].Subform2[*].Table1.Row1[*].CLC");
for (var i = 0; i < countS.length; i++)
 {
if(countU.item(i).rawValue==0)
{
sumD += (countS.item(i).rawValue * countT.item(i).rawValue);
}
}
sumD

Script to change the font color of only the text the user selects (highlights)

$
0
0

Is there a way to change the color of the text, or highlight, only the text the user selects in a textField?


Script to record name of user logged into Windows7 PC?

$
0
0

Is there a script to add the name of the user logged into Windows7 PC in a textField?

Loop Through Subform Instances

$
0
0

I'm very new to Javascripts and Livecycle,

 

I have 4 fields (field1.rawValue, field2.rawValue, field3.rawValue & field4.rawValue wrapped in Subform1.  I'm attempting to sum values entered in fields 1, 2, & 3 into field 4 with the following script.

 

var myFields = field1.field2.field3.resolveNodes("Subform1[*]");

 

var sum = 0.0

 

for (var i = 0; i < myFields.length; i++) {

 

sum += myFields.item(i).field4.rawValue;

 

}

 

this.rawValue = sum;

 

When a new instance is added field4(1) should be the sum of field4(0) + field(1) + field2(1) + field3(1).

 

Thanks,

Formulare mit Adobe LiveCycle Designer verteilen

$
0
0

Die Schaltfläche Formular verteilen im Menü Datei ist nicht aktiv.
Eine Verteilung des Formulars bei Acrobat ist auch nicht möglich. Hier kommt die Meldung dass man  das Formular mit dem LiveCycle Designer bearbeiten soll.

Shortcut help

$
0
0

I have a dynamic form with expanding fields, and the customer is asking how they can view all the text as they are typing it in... Currently, the field is set for one row, and will expand... they are only allowed to see the one row when typing in data, and they would like to see it all (I am guessing zoom, but I only know it from the designer end).  What can I tell them, so they can see the whole box as they type?

Script to generate random integers and populate List Box

$
0
0

This is what I would like the coding to do. On a click, I want the script to generate 4 random integers between 0 and the value that the user enter the field called form1.RandomNumber.NumericField2.rawValue.  Once the random integer is generated, I then would like to store them in an array called "result".  I then would like to display the random population within a List Box called form.RandonNumber.ListBox1.  Below is the script that I wrote:

 

var result = [ ];

for (var i = 0; i != 4; ++i)

{

     var randomNumber = Math.random();

     var selectNumber = (randomNumber * form1.RandomNumber.NumericField2.rawValue) + 1;

     result.push(roundNumber);

 

     form1.RandomNumber.ListBox1.addItem(result.rawValue)

 

}

 

When the above code is executed, I basically just get the word "Empty" listed within my  List Box.

 

Any help with this would greatly be appreciated!

 

BT

Regular expression for restrict enter key

$
0
0

Hi

I have an address multi line text field. users are restricted to press enter key inside the text box, how can I accomplish that on the exit event of the text field.

 

Thanks

Generate and embed Aztec code in form through Javascript

$
0
0

Hi,

 

I'm new to LiveCycle Designer. I started using the tool to create (label) print templates for our SAP Manufacturing Execution (ME) system, printing documents and labels using Adobe Document Services (ADS) running on a Java stack.

 

I learned that several barcode types are not natively supported by LiveCycle Designer and ADS, like Aztec.

 

Has anyone built a form generating an Aztec code using for instance bwip-js or any other (open source?) lib?

 

I am in urgent need for a solution. Would be great if you could help.

 

Thanks,

Arjan


Table row textField not breaking within content

$
0
0

My form has a table with a few columns and rows. One of the column cells has a textField. I have the table set to allow page breaks within content and the row is set to the same thing but the text does not break when going to the next page. Is this a bug in LiveCycle or am I doing something wrong? I do not have the table in a subform because my understanding is that the table is just a subform itself.

 

Thank you

How to remove an item in the dropdown list ?

$
0
0

Hi all

thanks for your time.

I have a drop-down called "drp_names" in a dynamic table that the rows can repeat on clicking button, table SOM named "Body.Table1.Row1". what I want to do is how to delete the selected item in the first row to not let it appear on the drop-down in the second row.

 

thanks alot

How can i submit the PDF after apply password security?

$
0
0

Hi all,

     I created a form by using LiveCycle Designer ES4. The form has a submit button, and submit the XDP(include PDF) to the server by url. After apply the permission password to the form. Then will fail to submit the form and pop-up a msg say "The pdf document could not be saved and embedded in the XDP. This secure operation is not permitted.", how can i solve that?

(here's my permission setting)

LC_Cap.JPG

ps. I have already apply Reader Extensions, and using Acrobat Pro DC/Reader DC

 

Thanks All.

Enable Auto save while clicking button in PDF

$
0
0

Guys,

 

I have designed a form using LiveCylce designer ES2.

 

I have tired to write a code that will save the PDF automatically into the folder.

 

However it gives only popup. I have enable the user rights and try to open the pdf in Reader and attempting to click and save. But it not works.

 

Hope I have explained my concerns clearly.

 

Can you please guide me to get into the right direction.

 

Thanks

Siva

sivamaddy

Use submit button to trigger validation and prompt to save instead of submit action

$
0
0

I want to add a Submit Button that will trigger all validation using the built-in feature. This will also work well with the "forms validation" setting done on the form properties. See snapshot below.

 

However, if the validation is successful, I want to prompt for the save dialogue box instead actually submitting the form using this line of code:

 

app.execMenuItem("SaveAs");

 

How is this possible?

 

 

Tarek

Viewing all 5571 articles
Browse latest View live