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

LiveCycle javascript validation script for simple range limit with app.alert

$
0
0

In LiveCycle, I need to setup a simple numeric field that the user enters a value into that must be between 25 and 1000. If a number < 25 or > 1000 is entered there needs to be an app.alert and the field needs to be reset to null. The javascript for the calculate and validate event Javascript client is below. The script runs OK accept for resetting incorrect values to null. I need some help to get this working.

 

topmostSubform.Page1.Load1::calculate - (JavaScript, client)

if ((this.rawValue >=25) || (this.rawValue <=1000))

{Load1 = this.rawValue;

}

else

{this.rawValue ="";

}

 

 

topmostSubform.Page1.Load1::validate - (JavaScript, client)

if (!(this.isNull) && (this.rawValue != undefined))

if ((this.rawValue <25) || (this.rawValue >1000))

{app.alert("Must be between 25 and 1,000");

}

 

 

_____________________________________________

 

 

Thank you for your help.


triggering change when any field is changed

$
0
0

Hi,

I am new to adobe livecycle designer, so need your help for my scenario.

Scenario:

Consider i have a form, which has 10 pages. And each page has many controls like, textbox, drop down.

When any thing is changed in the form it can be a change in dropdown or textbox value.

I need to Make visible a Control named "txtAmended" and display "true".

 

what events i need to use and can you please share the code.

Javascript Date Format Change on exit

$
0
0

My date field has MM/DD/YYYY format which would show 08/03/2017 for example. If I copy a date from a website as 8/3/2017 and paste into the field I would like the date field to recognize that format and change to 08/03/2017 and not throw up a validation error. I looked at various ways to this but can't figure it out through the patterns (to accept the 8/3/2017 format) or through javascript in the exit event.

Renaming or Replacing a Field name through Action Wizard Jscript (batch process) Acrobat XI Pro

$
0
0

I am trying to run a batch process to sign multiple PDFs in one go using the Action Wizard JavaScript. These PDFs have been created on LCD 11.0

 

I tried using the following method to run a batch: How to use digital signature to sign 2000 pdfs in a folder at once. This works fine when I renamed the field on a PDF as "Signature1" through the Form Edit Mode. The field name on PDFs is "Signature of Employer or Authorized Person" and I cannot change the field name through editor as I do not own them. I am guessing that it doesn't read the spaces in between the field name. Is there a way to change/rename/replace a field name through JavaScript for files in a batch?

 

This is the script I am running:

 

/* Sign all files */

trustedSigning = app.trustedFunction (

   function () {   

      var myPlatform = app.platform;

      var ppklite = security.getHandler("Adobe.PPKLite");

    

      var f = this.getField("Signature of Employer or Authorized Person");

      var digIDPath = "/C/Files/A.pfx";

      var myPsswd = "my password";

      var myLoc = " my location";

      var myReason = "my reason";

      var myContact = "my e-mail";

      var myAppearance = "Pen Sig";

    

      var oParams = {

         cPassword: myPsswd,

         cDIPath: digIDPath

      };

 

ppklite.login(oParams);

 

      app.beginPriv();

      try {

f.signatureSign( ppklite,

            {  password: myPsswd,

               location: myLoc,

               reason: myReason,

contactInfo: myContact,

appearance: myAppearance

            }

         );

      } catch (e) {

console.println("\nFatal Error = "+e.message)

      }  

      app.endPriv();

   }

)

trustedSigning();

 

This is the original field name:

 

field name.png

 

This is the message on console -- "f is null" :

 

console.png

Dynamic Tables - not growing the table rows

$
0
0

I am working with ES4 and trying to create a table that will grow with the use of a button.  I followed an online tutorial that was about 4 years old, but all the steps were valid with my version of LiveCycle.  So I used the table wizard to create a 3 column table with headers.  Next I placed a button next to the table.  I then used the Action Builder tool to create action which was:

Condition: When button Button1 is clicked

Result: Add a new instance of Row1

 

This resulted in the following code for the button:

this.resolveNode('Table1._Row1').addInstance(1);

if (xfa.host.version < 8) {

    xfa.form.recalculate(1);

}

 

 

When I go to the Preview PDF tab, it has the table and the button, but clicking the button does nothing.  The warnings tab at the bottom has no errors listed.  Any ideas on why it wouldnt be working?  The table and the button are the only items on the form (testing).

Adobe Livecycle Designer Form expertise needed

$
0
0

Hi All,

 

My company we are looking for Adobe Livecycle Designer expertise where we can engage from case to case for technical consultation.

 

If you are interested please kindly contact me at ray@bard.com.sg

 

Thanks!

 

Ray

Multiple condition If and statement

$
0
0

I am using the if statement below on a button. What I would like to happen is if Name, Address, City, State, Zip and Member (fields) are empty you get the message Please complete all required fields or if the Member(field) (which is a yes=1, no=2) radio button equal 1 and eitehr Class, Room, Return or Local are empty you will get that same message. But if either of these conditions are met then it clicks the printbutton1.

 

 

if ((Name.rawValue ==null) or

    (Address.rawValue ==null) or

    (City.rawValue ==null) or

    (State.rawValue ==null) or

    (Zip.rawValue ==null) or

    (Member.rawValue ==null) or

 

then

 

xfa.host.messageBox("Please complete all required fields to print.")

 

elseif

    (Member.rawValue == 1) and

    (Class.rawValue ==null) or

    (Room.rawValue ==null) or

    (Return.rawValue ==null) or)

    (Local.rawValue ==null))

   

then

 

xfa.host.messageBox("Please complete all required fields to print.")

 

else

 

PrintButton1.execEvent("click")

 

endif

 

Any assistance would be greatly appreciated.

Thanks

Parre

I have a dozen tables - I want to take value from number fields of one table and divide by number fields from another table

$
0
0

I have a dozen repeatable tables. At the top of the page is a month valued box. I want to take value of the box and divide it by a number box from a whole separate repeatable table,

 

the name of the month box is numFor and its three trees deep in that table.

 

The name of the box it's divided by is numArtArr and it is three trees deep in a separate table

 

They are displaying the value in numArrTotal in the same table as numArtArr.

 

Please help


Addnew() from form to MS ACCESS DATABASE deosn't work for me

$
0
0

GOOD MORNING.

 

I had no success in adding records to my Access Database using Addnew().

Ajout d'un enregistrement.

$
0
0

Bonjour,

Comment ajouter un enregistrement dans MS ACCESS (base de donnée) via l'instruction Addnew() de LiveCycle DESIGNER.

Livecycle Designer ES4 - is this software coming to end of support?

$
0
0

Hi All,

 

I have a couple of questions with regards to the Livecycle Designer ES4 that i hope to get some advise:

 

1. Is Livecycle Designer ES4 coming of end of life, or end or support?

 

2. Currently i am using Livecycle Designer ES4 to create and edit dynamic PDF forms for my clients, if it is coming to end of support, do i need to migrate to AEM forms? Will i still be able to edit and create dynamic PDF forms using Livecycle Designer ES4?

 

3. If i still use Livecycle Designer ES4 to create and edit forms, is there any limitation?

 

4. About AEM, do they have a form designer program similar to Livecycle Designer ES4? Do i need to be train in a new environment again?

 

Basically i hope to be able to support my clients requirement, where we will create or edit dynamic forms for their use.

 

Please kindly advise,

 

Much appreciated, Thanks!

 

Best Regards,

Ray

Migrate License

$
0
0

I have a serialized copy of LiveCycle ES4 installed on one computer.  The computer has been replaced, how do I migrate the software to my new computer?

Special characters

$
0
0

Hello.

I would like to do a conversion of some special characters.

Example: I type "ç, ã, á" in the text field and after that happens the conversation for "c, a, a".

Does anyone know any script?

Thank you

Adobe Livecycle Designer 10

$
0
0

Hello - I need the download link for Adobe Livecycle Designer 10. I am unable to find it on the forum as questions there about it are unanswered after 2 years. Please let me know where the download area is.

 

Heather

Do not allow user enter/type the data on DATE field?

$
0
0

Hello

 

I have put a DATE object on my form by dragging standard tab of pallette, so that i am getting a CALENDER once the user is dropped down, fine.

 

But, at the same time form/date object is allowing user to enter date manually by typing on the field, but we do not want to give this ability/flexibilty to user, bcz of below reasons,

 

1 - My form is global, where in US and Europe user will use this form, where in the date FORMATS are different

 

2 - I need to put many validations under PATTERN (Edit, Display, Validation) as suggested below and a i guess a piece of Script as well, since i was newbie to Adobe, its kind of pain

 

http://thelivecycle.blogspot.com/2011/10/date-patterns.html

 

Hence pls. let me know that How can disable this flexibilty / ability, user must to use the calender if user want to enter the date. Its obviuos that i can grey it out, i guess, do i need to write some JavaScript / FormCalc script under ENTER / MOUSE ENTER event that user should not even/try put  cursor on the value entry space of the field

 

Any good suggestion pls.? also provide me Script (Either JS or FormCalc any thing is fine, which is simpler) ?

 

Thank you


Livecycle Designer HTTP Post

$
0
0

I'm trying to create an HTTP Post button to a site that has an html page as an example.  Posting via the built in HTML Post button doesn't seem to format it correctly for this site.  Can I do it with a javascript function?  What would that look like so I have the fields on my form pull and load?  I tried doing it by contatenating a URL string but acrobat crops the url at 1054 char and I need to be able to pass a long string.  So I am trying to do it another way through HTTP Post.  Also, HTTP Post won't have the same URL length restriction will it?  Here is the example their website provides.   

<html>

 

 

  <head>

 

 

    <title>Pre-Filled PowerForm Sample</title>

 

 

    <style type="text/css">

 

 

      body { background-color: #fefdfc;}

 

 

      p.description { width: 500px; border: 1px solid #cfc; padding: 20px; }

 

 

      .form_submit { text-align: right;}

 

 

      .form_cont { border: 1px solid #cfc; padding: 20px; width: 500px; background-color: #cd9;}

 

 

      .top_cont { width: 550px; margin-left: auto; margin-right: auto; }

 

 

    </style>

 

 

  </head>

 

 

  <body>

 

 

    <div class="top_cont">

 

 

      <p class="description">This web form, when submitted, will open a DocuSign Web PowerForm with all of the entered data. This allows the user to review the finalized document and apply their DocuSignature.</p>

 

 

      <div class="form_cont">

 

 

          <form action="https://demo.docusign.net/MEMBER/PowerFormSigning.aspx?PowerFormId=8968380d-16da-447c-97d7 -fa989ed11082" method="POST">

 

 

          <p><label for="email">Email Address: </label><input type="text" name="Signer 1_Email" id="email"/></p>

 

 

          <p><label for="name">Name: </label><input type="text" name="Signer 1_UserName" id="name"/></p>

 

 

          <p><label for="order">Order Number: </label><input type="text" name="OrderNumber" id="order"/></p>

 

 

          <p><label for="company">Company: </label><input type="text" name="CompanyName" id="company"/></p>

 

 

          <p><input class="form_submit" type="submit"/></p>

 

 

        </form>

 

 

      </div>

 

 

    </div>

 

 

  </body>

 

 

</html>

Trying to copy table row from one table to another using button.

$
0
0

I have two dynamic tables. Table 1 contains a list of to do items and  I want to move items completed to another table (Table 2) using a button that is incorporated into the table.

I have broken the task down into three sections:

1.     add a new row to Table 2 - this is working

2.     copy or move the appropriate row to the new table - NOT WORKING

3.     delete the old (now empty row) from Table 1 - not got to this yet.

 

Here is the script from the Click event:

 

          form1.Pg1.Table1.Row1.Btn_Completed::click - (JavaScript, client)

 

          //Step 1 Add a line to Table 2

 

          this.resolveNode('Pg2.Table2._Row1').addInstance(); //this works 12/13/17 14:45

 

          Pg2.Table2.Row1.itemDescription.rawValue = form1.Pg1.Table1.Row1.itemDescription.rawValue;

 

 

 

I have got it working somewhat but it only copies the first row. Any help greatly appreciated!

 

till a bit of a newbie at this. Using LC ES4

Text field disappears after saving

$
0
0

Hi Team,

after a quick search I have not found a solution or same problem.

I have Radio Buttons and invisible Text fields

I have used the action builder to generate the following:

I click at one radio button an the text field turns to visible.

If I open the PDF with Adobe Pro, everything is working fine. The Text field is showing up.

However when I save the file the text field disappears again.

 

Any diea how I can solve this issue?

 

Thanks,

Binding floating text fields with other fields...

$
0
0

Niall, or anyone who'd like to help...

 

I was in Paul G's flowing forms webinar today and a file was shared that showed how a floating text field could be globally binded to another text field, so that when the user enters text in the text field, it would automatically fill in the floating text in a text box.

 

I am trying to figure out how Niall was able to get the same floating text field in two different places on the form.

 

Niall's Add'l Features Example.JPG

 

When I add two floating text fields, even when they are globally bound, they still show up in the heirarchy as two separate objects ("field[0]" and "field[1]"). I think this may be where I'm having trouble with my form.

 

Can anyonen help me figure this out?

 

Thanks!

 

Jo

Screen reader not reading custom screen text for buttons, text objects (accessibility)

$
0
0

I have a dynamic PDF I've designed in LiveCycle Designer ES. I'm struggling with accessibility issues with JAWS.

 

JAWS doesn't seem to be reading custom text at all -- just tool tips. If I don't have a tool tip, it reads the object caption even if I have custom text selected for the screen reader preference and custom screen reader text entered.

 

This is a problem for buttons (not radio buttons, just buttons). I have buttons on my form that:

* Give instructions about how to complete the form

* Allow a user to save the form to their computer

* Add or remove a row instance from a table

* Spell check

* Check mandatory fields

And a few other functions.

 

The caption for the button to show instructions about completing the form is "?" That's all JAWS reads -- question mark. The custom screen reader text says something like click this button for instructions on completing this form.

The caption for the save buttons is "Save." That's all JAWS reads, instead of "click this button to save the form on your computer."

The add row button caption is "+" and the custom screen reader text is "click this button to add a row after this one." JAWS reads "plus sign." The remove row button caption is "-" and the custom screen reader text is "click this button to remove the current row." JAWS reads "dash."

I have a button to display a digital signature field, and that one reads correctly because the caption is "display a digital signature field."

 

I tried adding spaces after the caption and then what I wanted as the screen reader text (for example, +      click this button ...) but it just screws up the display of the caption.

 

How can I get JAWS to read my preferred text for buttons?

 

I also have several "text" objects -- not text fields, but static objects -- that I would need JAWS to read. JAWS just skips those completely. There is no accessibility option for text objects in LiveCycle Designer.

 

I've used tables to design my form so I could get the layout of different objects lined up correctly. Table "roles" don't seem to make a difference, either. Where I can, I've designated header rows and headings, but that doesn't seem to make a difference either.

 

I see lots of Google results for people struggling with these issues, but no solutions. Suggestions?

Viewing all 5571 articles
Browse latest View live


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