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

binding with .length

$
0
0

Hi -

 

My boss and I working looking though the XFA specification and he noticed the ability to use aggregate functions like .length. 

But when ever I enter (schema path).length into designer it easies it.  Can someone provide some guidence?  I use an XSD external type binding with designer and using an external library to flatten the files (for now).   I'm using the latest version of design.

 

thanks, Doug


data formatting question

$
0
0

I have one field for SSN or EIN number. The xml output needs to be in either 123-45-6789 or 12-3456789 format depending on if the entity is a person or a business. I have a couple other fields I can likely use to trigger one format over the other but I'm not sure if I can selectively format one field multiple ways.

 

Is this possible and if so, does anyone have a sample or script that could do this?

 

I do know that I could display messages, validations and such to the field but it would be a better user experience if it was formatted on the way out that way the users could enter the data any way they were comfortable. Thanks for any suggestions!

Switching from design mode to preview mode

$
0
0

Hi all, I am a regular designer of dynamic forms in LCD but have just come upon a problem. Switching from design mode to view my form in preview is locking up LCD and forcing me to exit LCD. Any ideas would be appreciated from you clever bods. I'm working with v11.0.06. Thanks in advance.

How to update a dropdown object at Design time ( not Runtime)

$
0
0

All:

I have created a form with a drop-down object for Employee.

The additions & removals of Employees from the list is manually entered by an Administrator.

 

Is there an easier way for this to happen ( from an SQL , Excel sheet ) ?

 

This needs to be updateable only by the Administrator ( Design time ).

... who will post it to a common directory for the end-user ( who should not have access to the SQL/Excel  & should not be able to modify the list.) to fill.

 

What I am looking for is a simple process : (a) Admin opens the document (b) Clicks a button that updates the drop down list & (c) Saves it to the common directory.

 

Aubrey

Validate fields before signature

$
0
0

Hello --- hope you are all enjoying the holiday season.


I'm working on a fillable pdf form for my office mates to use as a cover sheet for certifying invoices for payment. I have a few fields which must be filled in for the finance team to accept the document. I also have a document signature field so the form filler can sign the coversheet (our office has certificates all set up). I'm using LiveCycle Designer (LCD) on an enterprise so I have no control over when/if I'll ever have a later version. The one I have is whatever comes with Acrobat 8.x (pertinant becasue it does not have preSign and postSign events with signature fields).

 

I'm trying to have the form check that the required fields are non-empty before the document is signed and prevent a signature on an incomplete form. I was envisioning an appropriate little script in some event on the signature field. Should be easy, right? Well, I wouldn't be posting if I'd succeded

 

The solutions I've tried are listed below. They each fall short --- maybe some one can help make one of them work, or maybe some one has a different approach that will work. I'm all ears. I'm happy to admit that some good old RTFM may be involved, but I'd appreciate a pointer to which FM to RT. I have experience coding (mostly in C/Perl) but am pretty green with java.

 

Thanks for you time !!

 

Gordon

 

  • Mark the fields as required in the Object value tab: This sort of worked. When I left a required field empty and then signed the document, I got a warning message about empty fields. But the signature process flow continued and signed the document. I was left with a signature that would be invalid because I'd need to go back and fill in the missing data. I played with the "Validation Pattern" and "Validation Script" options in the value tab but had no luck. Did I miss something simple there?

 

  • Scirpt in a signature event: I played with little validating scripts in the click and mouseDown events of the signature field. I could get them to check for null in the required fields, but I could not then stop the signature process flow. Any ideas?

 

  • Fake Signature Button: I borrowed an idea from a post on this forum in which some one suggested putting a "fake print button" over an invisible but real print button (in that case the designer wanted to prevent printing of an incomplete document). The "fake button" called an appropriate script to check for empty fields in its click event and then "clicked" the real (and invisible) print button via RealPrintButton.execEvent("click"). I've now lost the post so I can't credit its author -- sorry -- but it seemed like a great idea! I covered my signature field with a button and tried the following code in the click event:

 

          form1.#subform[0].button::click - (JavaScript, client)


     if( RequiredTextField.rawValue != null ) {

          // reveal the obsecured sig field by making the button invisible

          button_subform.presence = "invisible";

          // fire off the digital signature

          SignatureField.execEvent("click");

     }

     else

     {

          // keep hiding access to the signature field

          xfa.host.messageBox("Please fill in all required fields");

     }

 

          It didn't work. I later found a post in which some one said that the  digital signature process flow is complicated and that a genuine user  click is not the same as a click from javascript. Presumably it work for the button case.

 

  • Fake Signature Button 2: Do the "button over the signature" thing as above but don't try to "click" the signature for the user -- force the user to manually click the signature field once it has been revealed. I see two drawbacks to this approach. Firstly, I shoudn't have to give in on this -- there has to be a way to do what I want. Secondly, how long will it be before some user whines about having to click twice to sign a document? 

update field

$
0
0

I have afieldnamewithglobalbindings, I'd likea second fieldname(calledname2)hasdefaultvaluethat fits inreal timein theprincipal name,as if it werealsointhe globalbinding, but if Ichange the valueof the fieldname2must notchange the value offieldname1,withwhich scriptcan Iaccomplish this?
thanks

Riccardo

FormCalc: format border color for data in table

$
0
0

I am new in scripting language so I seek your patience if my question seems to be obvious.

I need to put different color (let say: red) to the bottom border/line for all lines of the data in a table.

My palette hierarchy looks like the following screen shot:

ADLCD_Image1.jpg

I tried with one column TANUM (i.e. TO No.) and put the following FormCalc script in the even "initialize":

data.Page1.Output_table.IT_OUTPUT.DATA.TANUM.border.getElement("edge",2).color.value = "255,0,0"

When I run it does color the Column TANUM with the color Red, but only for the last line of the data on the second

column (TANUM).

ADLCD_Image2.jpg

So my question is: how can apply it to ALL lines of the data?

Thanks for your help in advance.

Need help making digital signature field read only if required fields are null

$
0
0

Using Adobe LiveCycle Designer, I have a digital signature field.  I want to prevent users from being able to digitally sign the pdf if any required fields in the pdf are null or blank.  I'm a newbie to scripting so any detailed help would be greatly appreciated.  The required fields in the pdf include radio buttons, check boxes, text field, etc.  I appreciate any help anyone can provide.

 

Thanks


Multiple instances of a page

$
0
0

Hello

 

I have a multipage form I am creating.  One of the pages spans two pages, and within the page is a table and within the table cells are linked (Data Binding)  See screen shot.

Capture.JPG

Sorry it is a little grainy.

 

What I am trying to do is be able to create multiple instances of these two pages but the data in Row1 of the table is only the same in that particular instance. So the data inputed in the next instance would be different than the first and so on.

 

I hope that makes since, as that is the best I can explain it.

 

Thanks

Gregg

Form fields in LiveCycle. I want to allow users to add URLs to a form so that they can be clicked and opened on the web by form reviewers (users). what is the best way to achieve this?

$
0
0

Form fields in LiveCycle. I want to allow users to add URLs to a form so that they can be clicked and opened on the web by form reviewers (users). what is the best way to achieve this?

deselect radio buttons except the one that execute change

$
0
0

Hey!

 

Im curious how to improve this code;

 

if(this.rawValue == true){

 

     radiobtn1.rawValue = 0;

     radiobtn2.rawValue = 0;

     radiobtn3.rawValue = 0;

}

 

into a function that unchecks all radio buttons except the one that you checked as true.

 

Thank you!

DateTime Field

$
0
0

I have a date time control that I'm not sure how to get it to behave properly.

 

If someone tries to insert the date 12/12/34 for example it makes the date 12/12/1934 instead of 12/12/2034. Is there a way to change this behavior? It even happens when someone enters the date from actually picking the calendar UI out that far.

 

Thanks!

text fields displaying in lower on page in PDF preview than in design mode

$
0
0

Hi,

 

I've had this problem for a little while and just worked around it, but I'm wondering if it is something I am doing that is causing it.  In design mode, I line up a fill-able text field over a static text field.   When previewing the PDF, the fill-able text fields are lower in the static text area than what is reflected in the design mode.  Any assistance would be appreciated.  I've noticed, if the line spacing is set to Exactly at 15pt, then the fields display the same in both modes.  While this is not a huge problem, I have some forms that need to stay single spaced (or as close to it as possible).

 

Design Mode:

Design mode.JPG

PDF Preview mode:

PDF Preview mode.JPG

Thank you in advance for any assistance.

form progressive number

$
0
0

Hi

I shouldinclude in my pdf formanumberingtype:
00001/ACQ/2014
Numberme upthatchanges wheneveryou press theprint button
and the yearthatchangesautomatically andthe exchange rate, reset the counter
Can you help?
thanks

 

LiveCycle Designer Form - XML data not showing up for radio buttons

$
0
0

I have radio buttons in my LiveCycle Designer form.  When I import XML data, nothing shows up for my radio button selections.


Increase/decrease indent not working for bullets

$
0
0

I recently upgraded to ES4 so I would be able to created bulleted lists in forms.  However it seems that the increase/decrease indent doesn't work.  Is this a known problem?  Is there a work around?

Don't ask for save when close the file.

$
0
0

Maybe you all meet a situation that, if you edit the pdf form with adobe reader or acrobat and close it, it will jump out a window and ask "do you want to save the change before closing?".

Does anybody know how to cancle this asking? Because users can't save the file directly and I added a function to export to xml file, it dosen't need to save anymore.

Could you share me how to advoid asking for save when close the pdf form?

 

Thank you all!!!

Ellie

Help - Validation fails stop script

$
0
0

Hi guys,

 

I need help with some code.

 

I have created a form which users a normal button as a submit for e-mail. The reason I have done this is because the button pulls out info from the form and inserts it into the e-mail. All works so far. The form contains fields which must be filled in, however because i am using a normal button when it is clicked it seems to bypass the validation process.

 

I have inserted - if (topmostSubform.execValidate()) at the top of my script and added in the form properties turned on form validation. If I click the submit button now I get a warning message and the required fields turn blue. However, when I click ok on the pop up message the script runs anyway and the outlook draft box appears with the e-mail.

 

I would like to ask - how do i stop the script running if validation fails?

How can I generate different images for each choice made in a drop down?

$
0
0


Hello everyone,

     I am new to livecycle and scripting and I have a question. I have figured out how to use a switch statement to generate choices in a drop drown from the choice in another fairly quickly. However, I've tried searching and bought the book by J.P Terry to self teach. I may have missed it, but I want to be able to click on one of the choices that have been generated and an image of it displayed below the drop down box. Here is an example of what I'm talking about:

 

For Example: DropDownList1 is scripted so that if I choose either value 0 or 1, the three items are then listed in DropDownList2. I want to be able a to choose any of the six items, when the choice is available in DropDownList2, and an image for each item will be displayed when I click on it. I believe this is possible but I am an amateur and I need the guidance of an experienced user. Thank you for your help.

 

DropDownList2.clearItems();

switch(this.rawValue){

    case "0":

        DropDownList2.addItem("Item One"

        DropDownList2.addItem("Item Two");

        DropDownList2.addItem("Item Three");

        break;

    case "1":

        DropDownList2.addItem("Item Four"

        DropDownList2.addItem("Item Five");

        DropDownList2.addItem("Item Six");

        break;

}























































































































































































Form fields in LiveCycle. I want to allow users to add URLs to a form so that they can be clicked and opened on the web by form reviewers (users). what is the best way to achieve this?

$
0
0

Form fields in LiveCycle. I want to allow users to add URLs to a form so that they can be clicked and opened on the web by form reviewers (users). what is the best way to achieve this?

Viewing all 5571 articles
Browse latest View live


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