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

Hierarchical Table?

$
0
0

Hi

 

I need to create a table in LiveCycle which has a hierachical structure, so we have multiple Category items each containing a number of Groups each containing a number of Items.

 

I have tried a few different approaches, each of which with it's own pitfalls:

  1. I tried creating a table where each row was bound to the Category level in my data and the cells were actually subforms.  Then I put a hierarchical repeating subform structure inside these subforms.

    This worked well until I got to a page where the Items level had so many entries that it needed to stretch across multiple pages.  As far as I can tell there is no way to allow a single row of a table to break across pages.
  2. I tried using the table groups to represent the structure.

    Unfortunately the groups themselves don't have a binding so I wound up with all of the Categories followed by all of the groups followd by all of the Items.
  3. I tried simulating a table using subforms in a hierarchical structure.

    The problem with this is I can't find any way to make the header row repeat at the top of pages that it overflows onto.

 

If anyone can think of a solution to any of the above approaches or a new approach I haven't thought of I'd be very grateful.

 

Thanks

 

Dan


JavaScript validation/override red borders?

$
0
0

We are creating numerous forms in LiveCycle and are very averse to having to specify "User Entered - Required" for two main reasons:

 

  • doing so places those ugly, red boarders around required fields
  • most fields on most forms are required, we don't want to clutter our forms with red borders

 

The problem we encounter is that users can submit empty forms/null values via email, and I yet to find a way around this. Incomplete forms/data, particularly on things like requisitions and the like, can lead to delays in processing. We want to mitigate that by forcing client-side validation before users submit their forms via email.

 

I am very new to both LiveCycle and JavaScript.

 

I have tried

 

fieldname.mandatory = "This cannot be left blank.";

 

tied to the validate event, but this does not seem to do anything: users can still submit forms, even if the value is null/empty.

 

Where this would most be used is with text and numeric fields and, occasionally, with radio buttons/exclusion groups.

 

Can someone please help me figure out simple client-side JavaScript validation (or other method) that would force users to enter values in these mandatory fields before submitting, preferably without having to subject our users to the hideous borders?

Right-justify a field

$
0
0

I would like a text field to expand to the left when I type a long string into it. Right now it expands to the right. Is this possible? I tried using the paragraph controls and the anchor controls but no luck.

 

It is a price field that is near some other text so when a person types in a long string I need it to expand left.

 

Can anyone help?

Make file browser to point to a particular folder in network path

$
0
0

Hi,

 

In my form, i have used event.target to browse for a document. By default, it opens desktop to choose file. Is it possible to make it point to a particular folder in network?

 

Please help.

 

Regards,

Sudha

Field to count number of subforms (patients)

$
0
0

Hi,

 

New to Designer and making some headway...

 

I've got a field to count the number of patients on a form. Each patient's details are in a subform, which is within a container. There's buttons to add or delete a patient/subform which is working fine.

 

I'm struggling with getting the field to show the number of patients/subforms.

 

I've put this code into the 'calculate' event of the field:

$.rawValue=Count(PatientContainer.PatientDetailsSubform.Line1[*])

 

'Line1' is an element withing the PatientDetailsSubform. I did have it as 'Surname' but the count only goes up when it's non-null and even then it only seems to count the first subform. To be honest, Line1 doesn't work at all...

 

Thanks in advance,


Simon.

How do I use a button to add "1" to a number?

$
0
0

I'm sure this is so simple that I'm going to be smacking my forehead when someone gives me the answer but for the life of me, I can't figure out how to do this.

 

I'm making a simple pdf that lists ticket prices for an event. I want the button to add one to the number of tickets ordered every time it's clicked. I need the starting value to be "0" tickets. How do I do this?

Delete a node in XML

$
0
0

Hi

 

I have a XML that is getting generated on click of a button in the form.

 

I am using  xfa.data.saveXML("pretty"); to generate the XML.

 

Following is the XML,

 

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

<xfa:data xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">

   <ELEMENT>

      <DATA>

         <ROW_IID>0</ROW_IID>

         <PARENT>0</PARENT>

         <CHILD>0</CHILD>

      </DATA>

      <NAME> 

          <FNAME>0</FNAME>

          <LNAME>0</LNAME>

      </NAME>

   </ELEMENT>

</xfa:data>

 

I want to delete the <NAME> node in the XML and assign the manipulated XML to some text field.

 

Could anyone please let me know how to do the same?

 

Thanks:)

Change subform presence based on pageCount?

$
0
0

I am losing my mind here! There's got to be a way to do this:

 

Trying to restrict the total number of pages in a dynamic form with a repeating subform.

 

  • The "Restrict Page Occurrence" option on the Master Page object tab does not work properly because of the repeating subform in the form.
  • I have two master pages. MasterPage1 is the first page of the document and MasterPage2 is pages 2+.
  • The form starts off as 1 page and if the user creates a few instances of the repeating subform, it'll automatically flow onto master page #2.
  • I created two buttons at the end of the form, each within their own subforms.
    • subform1.SubmitButton1 the actual Submit button and its presence should be "visible" if the total document page count is equal to or less than 3.
    • subform2.SubmitButton2 is a fake submit button set up with an error message on its click event and its presence should be set to "visible" if the total document page count is greater than 3 (it should be hidden otherwise).

 

I cannot for the life of me get the presence of these subforms to work! I'm not sure if I put code on the PageCount item on master page #2, or on the subform1 and subform2... 

 

Here's what I was trying:

 

if (xfa.layout.pageCount>3){

     Page1.subform1.SubmitButton1.presence = "hidden";

     Page1.subform2.SubmitButton2.presence = "visible";

} else {

     Page1.subform1.SubmitButton1.presence = "visible";   

     Page1.subform2.SubmitButton2.presence = "hidden";  

    }

 

Where am I going wrong? Thanks for any help you can provide!


Vertical alignment is middle regardless of setting

$
0
0

Running LiveCycle Designer ES 8.2 and Adobe Acrobat Pro 9 on Windows 7.

 

I'm designing a form with many text fields.  Most of them work great.  However, I several text fields--some standalone, some table cells--where the vertical alignment of the user-entered value always shows as middle. 

 

For example, this text field has the vertical alignment set to bottom, using the paragraph pallette:

alignment_sample.PNG

 

This is the same field with the alignment set to top:

alignment_sample.PNG

 

And this is the same field again, with the alignment set to middle:

alignment_sample.PNG

You will notice that they all look the same--always middle.  I'm able to set the caption alignment fine, and I'm aware of the way to distinguish between adjusting the caption and value properties in the paragraph pallette. 

 

I can't determine any pattern as to why some of my text fields align fine according to the settings I specify, and some of them are always, always middle-aligned. 

 

Are there any other settings or conditions which may be overriding my alignment settings for these specific fields? 

 

It first started happening with table cells, so I assumed some table setting was causing the problem (although I never found it). Once standalone text fields started doing it too, though, I was extra stumped. 

 

I am able to adjust all the horitzonal alignment settings fine.  I have tried deleting the offending cells and starting from scratch, but it hasn't helped.

 

Any suggestions or help would be appreciated!

 

Thanks,

Marybeth

Combining documents

$
0
0

Hello all!

 

I have six documents that I want to combine to be a single interactive PDF. At present, when you click certain radio buttons, the associated PDF file opens up, in a new document. I would like it to be that when the user clicks the radio buttons, the page shows up in the same document. I've been copying the subforms from the supplementary documents into new subforms in the main document, but the file is too big now. It's about 4.3MB, but when you open it as a PDF it's only 67 pages, and crashes LiveCycle every time I try to save.

 

I've gotten this to work using some code and the Visible/Hidden Presence settings in other documents, but having created all the forms in the same original document. That file is 1.9MB with 116 pages, not including the ones that are hidden upon opening.

 

Suggestions?

 

I tried copying and pasting the XML from the supplementary documents into the XML Source tab for the main document, but simply doing that does not seem to work. I've also never worked with XML before, but would be willing to play around with it.

 

Thanks in advance!

Livecycle designer form accessibility in PDF

$
0
0

HI!

I have created a form in LiveCycle.  When it opens in PDF and I run the accessiblitiy checker it says that the language is not defined for the form?  How do I define it.

 

Also In PDF there is a Keywords section that I can't figure out how to populate in Livecycle so if filters over to PDF.  Any help is greatly appreciated!

 

jodi

At least one required field was empty on export. Please fill in the required fields (highlighted)

$
0
0

"At least one required field was empty on export. Please fill in the required fields (highlighted)"

 

I'm tearing my hair out with this one. Have checked all the fields to confirm if I had set the Type as User Entered - Required. Can't find any such field. Any help would be appreciated. Is there an email id where I can send the form?

Make Textfield Flow To Next Page

$
0
0

Hello,

 

I am new to Adobe LiveCycle and my new form is coming along well but one big spot I am lost and confused on is allowing the textfield that contains alot of text force things to drop down to the next page and continue to show. Right now after it goes over to many words, the box cuts off and doesn't show full text.    Everything is pushing down and flowing perfect except to next page functionality.

 

below is image of my hierarchy pallete and also image of how form looks once it goes over to many words. Thnx n advance for any help!

 

page2.jpgspace.jpg

Can acroforms be copied into an interactive LC form?

$
0
0

Hi all,

 

I created a flowed form in LC ES2 for our area that opens new accounts recently and it is also my first exposure to LC so my knowledge base is very limited thus far.

 

Upper management has decided that instead of simply making the current "forms" (word, excel and some PDF files) interactive PDF's, they want to incorposrate all of the various forms into a single interactive form.

 

In my mind this is a huge task given that there are over 40 different types of accounts which have anywhere from 10-20 other documents needing completion. I've suggested beginning this task with a top 5 or top 10 most frequently opened account types but even that seems daunting to me.

 

What I have to work with is LC ES2 and Acrobat Pro X. From what I've experienced what seems to work best is to first create PDF's of the word/excel files using Acrobat, then import into LC if I want to create new interactive forms.

 

What I tried but have failed to do now is to copy a current PDF (acroform) into a new page/subform into my original flowed form. Ex. I have a generic disclosure document (4 pages) that was a word doc, I created a pdf fom acrobat, then attempted to copy and paste that form into a blank subform I added to the flowed form. I got an error indicating there was not enough space. I was hoping the subform paste would expand to fit whatever I was pasting in but that is not what I'm seeing.

 

Can this be done? If not, any suggestions on how to accomplish this task?

 

As a general estimate, I'd say I've been tasked to add nearly 50-75 separate pdf forms to this original then dynamically hide/show/prefill certain pages based on account type selections, etc.

 

I really hope there is some way to copy/import these rather than have to recreate each from scratch. Any suggestions would be greatly appreciated!

Getting rid of borders on captions above fields

$
0
0

Hi, (über-noob alert)

 

How do I get rid of the black borders to the left, right and above a field when the caption is above the field?forms-borders.jpg

The borders of the field are set to 'none'. I could have no caption and place the captions as simple text blocks, but seems a needless workaround.

 

Tahnks in advance,


Simon.


What event to use

$
0
0

I have a field that calculates a total. I'd like for the total if it's less than or equal to 250.00 to make a subform visible. The end user does not put their cursor in or leave the total field. What event should I use for my script?

 

Here's the script:

 

 

 

if (this.rawValue <= 250.00) {

    page1.superVisor.presence = "visible";

}

else {

    page1.superVisor.presence = "hidden";

}

 

Thanks,

MDawn

How to hide the First Page (Navigation)

$
0
0

Hi to you all, I was hoping that you could help me out on a simple problem that I have. This is a simple page navigation, but could not try to get on how to hide its first page. Im working on several pages but the first page still remains. Hope you could help me out on my problem. Thanks All!

 

Here is the sample pdf. Page Nvigation

How could I calculate field width of text font characters for dynamic .x .y positioning?

$
0
0

Without getting into RTF, I'd like to simply calculate the width of text as entered into a field, so I can move another field directly adjacent to the end of the text. Character count will not work: "M" is much wider than "i".

 

Would the approach be to load a character width set, and iterate through the text string accumulating width?

 

Are those character tables accessible anywhere from JS?

Thanks in advance. MP

 

 

 

Access/SQL to PDF data binding question

$
0
0

Hello,

 

The goal = Using an access form, fill out fields which populate a table on the sql server. Open a PDF and data bind the fields to that table. Lock the fields with the correct information. Then send to an individual with read only data that is NOT bound to the server.

 

I can get to binding the data and seeing the correct information populate on the PDF fields, but I'm stuck on how to make the fields read only and turn the data binding off through script.

 

Any and all help is greatly appreciated!!

 

I'm using LCD ES2, Access 2010, SQLExpress 2008 R2

Thank you,

James

Limit Date Fields to Only Allow Past or Future Dates?

$
0
0

Hi,

 

I am using LiveCycle ES3.  My request is simple.  I have multiple date fields throughout my form.  Some date fields should only allow past dates; Some date fields should only allow future dates.  When an invalid date is entered, the date should be rejected, the field remain required, and an error message pop up, saying "This date cannot be in the future" or "This date cannot be in the past", depending on which field it is. 

 

As a note, I used the exact script from the demo file "Highlighting Required Fields", however I discovered that this script is overly complicated and even worse still it is incorrect.

 

Any help would be greatly appreciated.

 

Thank you.

Viewing all 5571 articles
Browse latest View live


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