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

Formatting and Spacing Issues

$
0
0

In dynamic forms, I use text fields for unchanging individual sentences and paragraphs. The same document may also have numbered paragraphs with changing and unchanging text. I also use a lot of text fields with the Concat function in text fields which create sentences/paragraphs of varying length as the lengths of the text/date field objects expand.

 

I often find that I have trouble spacing text and text field objects. If my text or text field objects are set with spacing at 1.5 I cannot get them to space properly on the form. My only recourse is to eye ball how it looks, and invariable the sentences do not space out on the page correctly.

 

If I word process a document, all of my sentences on a page with line spacing set at "2" are going to be consistent. I am having difficulty re creating that consistency with multiple objects.

 

My question is not about the Align function. I am familiar with that. My question deals with correct line spacing using text and text field objects. Is there a way to do this more exactly than eyeballing the form?

 

Can you point me to a resource? Is there a methodical way to accomplish this consistency that I'm missing.

 

Many thank yous.

 

Steven


Hours from date to date

$
0
0

I have field where is writing hours, and I have one filed start-date after then other field start-hour. And I have field end-date and end-hour.
How can i calculate how many hours are between start and end. If one day is 8 hours's and  working day is from 8 o'clock until 10 o'clock. And how can i make to not calculate sundat and saturday and hollidays?

 

It is hard but i need this, thank you

How do I use scripting to set an object location?

$
0
0

Hello,

 

I have an "X" text object that I would like to change its (x,y) location on my .pdf form based on values that the .pdf user places into (2) separate decimal fields.

 

For Example:

If User enters for example 3.1 and 2.5 into the two decimal fields the location of the "X" object would be:

 

Xcoordinate = constant1 * 3.1 + constant 2

Ycoordinate = constant3 * 2.5 + constant 4

 

Does anyone have an idea on how I might be able to accomplish this using the script editor in LiveCycle Designer or some other method?

 

If not, is there a way for me to make the "X" movable (by dragging) by the end user who will not be using LiveCycle Designer?

 

Thanks,

 

Chris

How do I hide a list of items that are not selected (check boxes)?

$
0
0

I have form with many items that I would like them to hide if they are not selected, before printing for example or just to clear them off.

Is it possible to define the parameters of auto-sized text?

$
0
0

Hello,

 

I'm working on creating a form that will create small signs with variable text sizes. The font value is currently set to "0" but I'm concerned that my end user will add so much text that the sign becomes unreadable.

 

Is there a way to create limits on font size within a text field? Can I put a range in the value field to achieve what I am looking for? Or is there a better way?

 

Thank you,

Erin

Livecycle form crashes Reader and Acrobat

$
0
0

I've created a Livecycle form that has been working great. However, a user managed to corrupt it somehow and now it causes both Reader and Acrobat to freeze and then close when trying to load it. I also tried it in Nuance which causes a freeze but not an app close. However I noticed in task manager that while frozen, Nuance's memory consumption continues to grow.

 

Is there anyway to debug this to determine what is going on? Any other suggestions on how I can try to determine what is happening?

Why Lifecycle Designer ES4 crashing on a pdf form created in ES2

$
0
0

Designer ES4 crash.png

On HP Probook 4730s laptop with Windows 7, Designer ES4 keeps crashing on a pdf form created in ES2. Opening it in Adobe Acrobat Pro XI and reader is fine. Installed the ES4 sp1 did not help. Other forms are fine. No special fields on the form except some basic textboxes, signatures, checkboxes, lines.

 

Any idea about how to fix this?

 

Thanks

ACCESSIBILITY - Lifecyles

$
0
0

Hello,

 

I read that the newer version screen readers allow you to switch between ‘browse’ mode and ‘forms’ mode using the down and up arrow.  I tested it and it worked, but not perfectly.  As soon as I hit the first form field it failed to read all the text and did not follow the tab order.  Also, as soon as the screen reader was in ‘forms’ mode I could not use the ‘H’ key to toggle through my headings.  My solution was to include the non-forms field text in the tool tip of the first forms field.  It seems to work okay but I would like an experts opinion on the effectiveness of this form before I proceed to work on other forms.  Any feedback would be greatly appreciated.  Please see the attached form.


http://healthcareathome.ca/eriestclair/en/Documents/Referral%20Forms/CS%20010%20E%20Referr al%20and%20Treatment%20Plan.pd…    (couldn't attach the file for some reason :S)



trial version serial number

$
0
0

I have downloaded the trial version of LiveCycle Designer ES4 and I am being prompted for a serial number when trying to install.  Where do I obtain this?

Subform: Flow content only within certain boundaries

$
0
0

Some of the most difficult concepts for me to keep straight in my mind are the effects of various combinations of:

  • Content: Positioned vs. Content: Flowed for a subform,
  • Allow Page Breaks within Content [yes/no] for a subform,
  • Allow Multiple Lines for an object inside a subform,
  • Allow Page Breaks within Content [yes/no] for an object inside a subform.

 

In my instant case, I have a form which has two fields as shown below. The field for 1.3 Subcontractor means: needs to be able to grow vertically to accommodate as many lines of text as the user wants to enter, but it needs to stay within the left/right area I have placed it. That is, the Y axis (vertical) needs to be able to grow, but the object should not be able to move within the X axis (horizontal). When and if it grows, it needs to push down the content that follows it (shown as 1.4 The Subcontract Date means: [text field]).

livecycle_1.png

I've accomplished this before with other forms, but I'll be darned if I can remember how I did it.

Reset all fields in a repeating subform and restore instance count back to 1

$
0
0

I've played around with a few different scenarios and able to achieve parts of the solution, but not there fully.

 

Whenever I use.....xfa.host.resetData("xfa.form.form1..."); ...it only resets the fields in the 1st instance of the repeating subform. So if I have 3 instances, it only resets instance 1.

 

Currently, the subform is set to an initial count of 1, and additional instances are added via an "Add" button.

 

Thus, I'm looking for a solution that will not only reset all content within a "specific" subform (not entire form), AND restore the instance count back to 1.

 

Thank you in advance!!!

render a blank page if the form ends with odd pages

$
0
0

Hi,

 

i am designing a form in Livecycle es4 designer, the form is saved as .xdp and we have a .xml as input, based on the data stream the form extends to n number of pages, i need to end my form on an even page always,

if there are 3 pages based on the data, i need to show an blank page as the  4th page. if there are 4 pages based on data stream we need not show the extra blank page.

 

i have added a blank page in my designer made it hidden from layout, , wrapped in a sub form  and in the layout editor :ready i have written the following script

 

var pageCount = xfa.layout.pageCount();

if(pageCount%2==0){Blank.presence = "hidden";}

{Blank.presence = "visible";}

 

but my form now which is 3 pages does not append the blank page, any direction will be very helpful.

Thanks in advance

CW

Cannot reset border of subform?

$
0
0

I am modifying the ColorFieldsValidation JavaScript to handle a situation where I want the entire subform containing any failed fields to be highlighted. The highlighting works well. However, even when the validation is successful, the highlighting persists. I believe I've narrowed it down to line 32, which seems to only remove the bottommost border. I realize this code was originally written to remove borders of fields, but why does it not also work for subforms?

 

 

function InitializeColorFields() {    // Disable Acrobat's field highlighting. The Color    // Failed Fields action takes care of highlighting fields.    if (xfa.host.name == "Acrobat") {        app.runtimeHighlight = false;    }
}
function DoColorFields(oInvalidNode) {    // If this form is running on a client other than Acrobat    // (like on the server) then don't run this script    if (xfa.host.name != "Acrobat") {        return;    }    var sClassName = oInvalidNode.className;      // Only contests, so nodes that are <field>s and    // have name "Selected"    // Ignore everything else    if ((sClassName != "field") &&        (oInvalidNode.name != "Selected")) {        return;    }      //get closest Contest    var nearestContest = oInvalidNode.resolveNode("Contest")    if (oInvalidNode.errorText == "") {              // Validation Succeeded        // Revert the appearance to its original state                  console.println("we good for " + oInvalidNode.name);        var oBorder = nearestContest.border;        //does not work!              oBorder.parent.nodes.remove(oBorder);                            }    else {              // Validation Failed        // Show the invalid appearance        var oFailedBorder = nearestContest.border;        // Border color        // Show a solid border with square corners        var sBorderColor;            sBorderColor = "51, 102, 255";          if (sBorderColor != "none") {                  oFailedBorder.presence = "visible";                      for (var i = 0; i < 4; i++) {                var oEdge = oFailedBorder.getElement("edge", i);                              oEdge.presence = "visible";                oEdge.color.value = sBorderColor;                oEdge.thickness = "2pt";                oEdge.stroke = "solid";                              var oCorner = oFailedBorder.getElement("corner", i);                      oCorner.presence = "visible";                oCorner.color.value = sBorderColor;                oCorner.thickness = "2pt";                oCorner.stroke = "solid";                oCorner.join = "square";                oCorner.inverted = "0";                oCorner.radius = "0mm";            }        }        // Background color        // Show a solid fill color        var sFillColor;              sFillColor = "153, 204, 255";        if (sFillColor != "none") {            // The presence of the border must be visible to show the fill.            // Hide the edges when the invalid appearance doesn't include            // changing the border color            if (oFailedBorder.presence != "visible") {                oFailedBorder.presence = "visible";                oFailedBorder.edge.presence = "invisible";            }                      // Replace the current fill type with a solid fill            if (oFailedBorder.fill.oneOfChild.className != "solid") {                var oFailedFillType = oFailedBorder.fill.oneOfChild;                oFailedBorder.fill.nodes.remove(oFailedFillType);                              var oSolid = xfa.form.createNode("solid", "");                          oFailedBorder.fill.nodes.append(oSolid);            }            oFailedBorder.fill.color.value = sFillColor;        }          }
}

 

An example demonstrating this issue is here: Shared Files - Acrobat.com

Error checking code doesn't follow-through, assistance needed to make more "robust"

$
0
0

A table (Table "G") in a form I (said newbie) 'inherited' has the below script that is supposed to programmatically check fields prior to submission so the user can be directed to take corrective action(s). The table is optional unless either an amount is entered, or a radio button is selected.

SShot-0279.png

function oneLineTable(ERROR_MESSAGES, tableLetter, tableName){   i=0;  // set the counter   var TEXT;   while (xfa.resolveNode(tableName + ".ROW" + "[" + i + "]")!=null){      TABLE_ROW = tableName + ".ROW" + "[" + i + "]";      J_AMOUNT = xfa.resolveNode(TABLE_ROW).J_FUNDS.rawValue;      // The following switch handles differences in Tables C, E, F, and G      switch (tableLetter) {         case "C" : {            TEXT = xfa.resolveNode(TABLE_ROW).MATCHINGGRANTNAME.rawValue;            J_AMOUNT = xfa.resolveNode(TABLE_ROW).J_FUNDS.rawValue;            break;            }         case "E" : {            TEXT = xfa.resolveNode(TABLE_ROW).GRANTNAME.rawValue;            J_AMOUNT = xfa.resolveNode(TABLE_ROW).J_FUNDS.rawValue;            break;            }         case "F" : {            TEXT = xfa.resolveNode(TABLE_ROW).RECIPIENT.rawValue;            J_AMOUNT = xfa.resolveNode(TABLE_ROW).J_FUNDS.rawValue;            break;            }         case "G" : {             TEXT = xfa.resolveNode(TABLE_ROW).SALARYTYPE.rblSALARYTYPE.OFFICER.rawValue;            TEXT = xfa.resolveNode(TABLE_ROW).SALARYTYPE.rblSALARYTYPE.REPLACEMENT_OFFICER.rawValue;            TEXT = xfa.resolveNode(TABLE_ROW).SALARYTYPE.rblSALARYTYPE.MATCH_SAL.rawValue;            TEXT = xfa.resolveNode(TABLE_ROW).SALARYTYPE.rblSALARYTYPE.OVERTIME.rawValue;            J_AMOUNT =  xfa.resolveNode(TABLE_ROW).J_FUNDS.rawValue;            break;            }         }              if (TEXT == null && J_AMOUNT != null) {         ERROR_MESSAGES+="  ●  Enter Type/Amount on Table " + tableLetter + ", row "+ (i+1) + ".\u000d\u000a";         }      if ((J_AMOUNT == null || J_AMOUNT == 0) && TEXT != null) {         ERROR_MESSAGES+="  ●  Enter a dollar value for Table " + tableLetter + ", row "+ (i+1) + ".\u000d\u000a";         }      if ((i != 0) && (J_AMOUNT == null && TEXT == null)) { // not first row         ERROR_MESSAGES+="  ●  Row "+ (i+1) +" on Table " + tableLetter + " is empty.\u000d\u000a";         }      else {         if ((xfa.resolveNode(tableName + ".ROW" + "[" + i+1 + "]")!=null) && // is first row and more than one row            (J_AMOUNT == null  && TEXT == null)) { // and first row is empty            ERROR_MESSAGES+="  ●  Row "+ (i+1) +" on Table " + tableLetter + " is empty.\u000d\u000a";            }         } // end else      i+=1;      }  // End While   return (ERROR_MESSAGES);
} // End of function oneLineTable

 

The script is only performing correctly for the first of the four possible radio button selections ('Overtime'):

SShot-0285b.png

Here are a few examples of the error messages the script is currently incorrectly displaying.

The 2nd bullet item should say 'Enter a dollar value for Table G, row 2.' (instead it erroneously says 'Row 2 on Table G is empty.').

The 3rd bullet item shouldn't be displaying at all (instead it erroneously says 'Enter Type/Amount on Table G, row 4.').

SShot-0284.png

Please let me know how the script must be modified so that errors are correctly displayed for the remaining three possible amount entries and radio button selections. The other tables ('C', 'E', 'F') are okay and the entries are optional.

SShot-0278.png

PMB

 

Message was edited by: PMBInc, updated screenshot

 

Message was edited by: PMBInc, clarified/added more detail to problem description.

Create and populate pdf forms from a xml file for follow up information

$
0
0

Forgive my amateurishness, I have a simple .xml that was created with excel with name, address, date of service, age, dob, account #, unit, and business name.  I need a form to be pre-populated with the .xml data but have other fields (mainly Yes/No check boxes) that need to be populated by other users.  This users would then finish filling out the form and return it to me via email.  I have created the form in LC Designer ES2.  However when I attempt to import data I can only see the first .xml record.  So my question is, how do I create multiple .pdf forms for each .xml record?  Do I need to use Java within LC Designer?  Or use Adobe Pro?  I am not afraid to attempt to code, (I have many excel programs that batch print to .pdf using vb).

 

Thank you in advance


Is it possible for a single field to automatically add a percentage charge on top of the amount entered by the user?

$
0
0

Example:

 

Field "Delinquency Fee" needs to automatically add 15% to the amount entered by the representative.

CSigDict - 1938 error?

$
0
0

Some of the forms are giving my end-users a strange error, saying

 

"Creation of this signature could not be completed, Unknown Error,

 

Support Information: CSigDict - 1938".

 

An HFT message then follows, saying the file is already open or in use by another application; however, I know this is not the case.  Unfortunately, once this error is shown, the file becomes permanently corrupted and I cannot remove the signature.  Sometimes the signature will show on the document just fine (even if it is corrupted, it looks fine on the screen), and sometimes not.

 

I can find no reference to this particular error on google.  Any idea what's going on?

 

Acrobat 9.3, LS 8.2, WinXP.

Conditional break - first instance of repeating subforms

$
0
0

I have a repeated subform (new instances added by a button). It is flowed and page breaks within content are allowed. Pagination is set to Following Previous/Continue filling Parent. I want all instances of the subform to start on a new page, except for the first instance.


I feel this can be achieved by specifying a Conditional Break. I set to "Break Before", but what do I specify as the When condition? I have tried a When condition of:


higherlevelforms._mysubform.count > 1


This causes all subforms to start on a new page, but how can I add "except for the first instance of mysubform" to the condition so that the first instance of mysubform doesn't start a new page?


Thank you.

Count instances of additional subforms using instance manager

$
0
0

I am familiar with using the following code in the calculate event in tables when the instance manager is used to add rows:

 

this.rawValue = this.parent.index+1;

 

 

However, I have a simple form that due to the need to expand the text field, I have used used a subform rather than table. While the instance manager works correctly, the number remains at one for each added instance.

 

A link to the form is here:

 

Dropbox - SMP Comments Form.pdf

 

 

Any help would be appreciated.

 

 

 

 

Events script not showing up in designer

$
0
0

I am working on a form using ES4 version 11 and when I try to view the Javascript code for the events nothing shows up.  I also cannot preview the form using the preview tab.  It just hangs.  When I quit and restart the form sometimes the script code shows up.  Any idas what may be causing this?

Viewing all 5571 articles
Browse latest View live


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