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

help with else

$
0
0

  the code below works if I take out the if this raw value section and turns on the check boxes and opens access but it won't  else.  I am just learning javascripting on the fly and am very unsure as to whether this is an else, if else, or whatever

on click I want it to show all "rows", and "Hide" chkboxes,   then open "" access

when  if this raw value statement is in I get the following message.

[0]:EditTables[0]:click

SyntaxError: missing } in compound statement

17:XFA:form1[0]:Main[0]:T2[0]:Edit[0]:EditTables[0]:click

SyntaxError: syntax error

4:XFA:form1[0]:Main[0]:T2[0]:Edit[0]:EditTables[0]:click

 

 

if (this.rawValue == "1")

//// take out the above and it only does the first part of the code.

var rowCount = 14; //change this number to number of rows in table

for(var i=1 ; i<rowCount ; i++)}

{

if (xfa.resolveNode("form1.Main.T2.T1.QA.Q.r" + i +""))//.presence = " ")//wprks with or without

{

xfa.resolveNode("form1.Main.T2.T1.QA.Q.r" + i +"").presence = "visible";

xfa.resolveNode("form1.Main.T2.T1.QA.Q.r" + i + ".c1.Hide").presence = "visible";

xfa.resolveNode("form1.Main.T2.T1.QA.Q.r" + i + ".c2").access = "";

}

else //// won't do the following the way it is written

{

xfa.resolveNode("form1.Main.T2.T1.QA.Q.r" + i + ".c1.Hide").presence = "hidden";

xfa.resolveNode("form1.Main.T2.T1.QA.Q.r" + i + ".c2").access = "readOnly";

 

}

}


populating subform via drodown list.please correct the code

Enable text field border only when content is entered

$
0
0

Hello,

 

Can anyone point me to a method to achieve the following:

 

Using LiveCycle ES2, I want to set certain text fields to have no border as a default.

 

When the user enters text into a field in the finished form, I want to turn on a border for that field.

 

When there is no text in that field, I want the border to turn off.

 

Is this possible? If so, does anyone have any suggestions?

 

Thanks!

How do I allow multiple formats in a required field?

$
0
0

Hi,   

 

In this case I am trying to validate a zip code field to allow U.S., Canada, and UK zip codes.  How would I do this?  I tried using the attached image, but it gives me an error when I enter a nine-digit U.S. zip code, like 12345-6789.  I want the field to be able to accept the four different zip code formats below.  Thank you for your help.

 

es3zipcodevalidation.JPG

Email pdf in body and as attachment

$
0
0

I'm currently using doc.mailDoc() to send a pdf via e-mail as an attachment, but need to know if it's possible to include the completed form in the body of the e-mail as well. This way the recipient is able to view the completed form in their Outlook Reading Pane instead of having to open the attachment.

 

Any help will be helpful.

Could not find the record specified with data_record option

$
0
0

Hi, we've got the same error in a couple of templates, but have no idea what can be the cause or solution. Does anyone know where I should look when I got "Could not find the record specified with data_record option" as message?

 

Thanks in advance!

Invoking a function after removeInstance

$
0
0

Hi

 

I have a small question regarding calling/invoking a javascript function after executing removingInstance.

 

I have a dynamic table that allows the user to remove/add as many rows as they want. If they decide to remove a row from the table, I need to call a javascript function.

 

If I place the script after removeInstance I always get an undefined error, and yet if I move that same script above the removeInstance, then there are no errors

 

But that's not what I'm trying to achieve.

 

Any help would be appreciated.

 

Thanks

MaThandos

Livecycle ES3/Acrobat XI Pro Javascript folder

$
0
0

Is this the most current information concerning where app level an user level scripts reside for Adobe Acrobat XI?

 

http://helpx.adobe.com/acrobat/kb/user-javascript-changes-10-1.html

 

I recently upgraded to Adobe Acrobat XI Pro & Livecycle ES 3 from X and ES2 respectively. Now Livecycle can't find the javascript file I saved at location:

 

C:\Users\JoeUser\AppData\Roaming\Adobe\Acrobat\Privileged\10.0\JavaScr ipts

 

I haven't been able to track down a document for AAXI similar to the document issued above about AA10.1 changes.Thanks


Dropdown Objects

$
0
0

Is there a way to get the dropdown objects to open by the user clicking into the object itself (not using the button)?

Radio button move cursor

$
0
0

Hi,

 

i have a 3 page form.On page one I have a radio button with a yes and no option.I was wondering if it was possible that if the user selects yes on the radio button that it will goto a specific text field on page 3.Is this possible?

 

Thanks!!!

Dynamical table: Header doesn't repeat on following pages

$
0
0

Hello

 

I have a problem with a dynamic table that goes over several pages:

The two header rows appear only on the firs page and are not repeated on the following pages as they should.

I also tried to delete one of the two header rows, but that didn't change anything.

 

Can anybody help me.

Kind regards, Sandro

 

The form is here:

https://files.acrobat.com/preview/e3538b75-69d8-4a5c-b578-878e8c3c345b

testing input for values between approved alphacharacters

$
0
0

Hello all,

I have a question about  the script below.

 

I want to test input in a text field for allowing approved letter groups in a text field. The field works for the approved letters as providing options for entering A+, A, A-, B+,B,B-, C+,C,C-,D+,D,D-,.

But I need to change the code so that the user is limited to entering the following values as pairs:

EX, VG, G, S, NI and na (all of these are to be case-sensitive.

What changes should I make to the change event code?  I've tried separating the values with quotes, but that isn't the solution.

 

Here is the code on the change event in JavaScript:

if (xfa.event.newText.match (/[^ABCDEIRna\+\-]/))  {

     xfa.event.change ="";

     xfa.host.beep("3");

}

 

On the exit event I have this code in FormCalc:

if($ eq "EX" or $ eq "VG" or $ eq "G" or $ eq "S" or $ eq "NI" or $ eq "na" or  $ eq null)

then $ = $

else

     xfa.host.messageBox("Please insert a mark of EX, VG, G, S, NI, or use na.","Data Error - Incorrect Mark", 1, 0)

$ = null

endif

 

Any help would be appreciated.

Validate field that there is a comma

$
0
0

I want to have the user enter their name as Last Name, First Name, with the comma. I need to be able to validate that there is a comma, figuring if there is not, they did not enter the name correctly and will give them a message saying such.

 

I have found a few things, but they don't seem to be working. Plus not sure where it would go, exit, change, validate, etc.?

 

I'm thinking something along the line of an e-mail validation, where it would check if there is text before and after the comma.

 

Thanks, Gary

Javascript: Check Internet connection before attempting to run SQL command on remote server

$
0
0

Good evening,

 

I am developing a form that reads and posts data from/to a table hosted on a remote PC running XP/SQL Server Express 2008 R2. I access the server through the Internet.

 

My problem is that if the internet connection happens to be down when I -eg- try to save data to the table using the form, the SQL command tries to reach the server for a while, and eventually crashes.

 

Is there a way to programatically verify that a remote SQL server is reachable over the Internet before attempting to run a command on it?

 

Many thanks in advance for any help you can provide!

 

Randy

Paper Form Barcode (PDF417)

$
0
0
All

Anyone can please tell me that what is the maximum data length we can embed in a Paper Form Barcode (PDF417)?

In case of any queries, please feel free to contact me.
Thanks in advance.

Syed Hussain Itiba Naqvi

Repeatable row disabled by default. Need to enable all rows based on value in XML.

$
0
0

I have a repeatable row in a table that is defaulted to read only.   If a certain value doesn't exist in the XML (populated != x), I want to make add / remove buttons visible and and make the text fields in the row and all subsequent instances Open.

 

when populated !=x:

disabled.JPG

 

 

This is the code:

if (xfa.host.name != "XFAPresentationAgent" && this.resolveNode("populated").rawValue != "x") {

  oTargetField = this.resolveNode("#subform[2].tbl_people.person.name");

      oTargetField.access = "open";

  oTargetField = this.resolveNode("#subform[2].tbl_people.person.relationship");

      oTargetField.access = "open";

  oTargetField = this.resolveNode("#subform[2].tbl_people.person.age");

      oTargetField.access = "open";

}

 

When I use this, it only enables the first row and none of the subsequent rows/instances.  

 

enabled.JPG

 

Any assistance would be greatly appreciated!

 

-Jeff

Stamping and comments in form

$
0
0

I have created a form with an expandable table because the need for extra spots are needed at times.  On my old form, I was able to stamp images and comments onto the form, however, with the new form, I am not able to do this. 

 

The error message I revieve is:

 

"This form is interactive and has special features.  To save a copy of it that you can treat as any other PDF file, choose File>Print and then choose the Adobe PDF printer.  This creates a PDF file that does not have special features, so you can add comments to it or send it our for review."

 

The PDF is set up to allow people to edit and save the form from Adobe Reader.

 

If it matters, I used a table from another form I found online and edited it to match what I needed, since I was unable to creat the expanding table myself.

Using Web Service from LiveCycle PDF Dynamic Form.

$
0
0
I have developed Staff Attendance Sheet about 7 years ago using Microsoft Office Web Componenets Data Access Pages (OWC DAP).
See image below of the current report using OWC DAP:
Since we are moving our legacy systems to SAP, this report will have to be re-implemented using Adobe LiveCycle PDF which is connecting to Web Service over SAP Systems (since OWC does not connect to Web Service).
The SAP development team have developed the initial webservice which generates the required data.
I have developed the initial version of the LiveCycle PDF, which can be downloaded from this link:
The following is a screen snapshot of the LC Desinger Form:http://bit.ly/cxMK62

When the web service is executed from inside PDF the result looks as follows:

http://bit.ly/cacbCg

 

The webservice accepts the following required parameters:

 

1. Period: YYYYMM. User Specified Value.

 

2. Staff ID: 9999999. It must be supplied automatcially to the web service and it must be the Windows ID of the User Logged In to Windows
Domain.

 

Other parameters are optional.

 

Assumptions:

==========

 

1. I am not using any Adobe Forms Server Technology. I can use LiveCycle Desinger ES2 and LiveCycle Reader Extensions Server.

 

2. I can alse develop using .NET to get the Logged In User ID (Windows), generate the XDP from ASPX Page and attach the XML to the XDP.

 

3. We are using IE8 with Adobe Reader 9 Plugin (IE add-on) to display LiveCycle PDF inside IE.

 

Questions:

========

 

1. First time the webservice is executed, I will get a prompt to allow/deny execution of the webservice. This is a security issue here, becuase we do not want any user to know the link to the Web Service. How we can hide the link to the webservice and prevent any user from getting the link ?

 

2. How I can stop the Prompt to Allow/Deny execution to the Web Service for good ? As you know, users will get confused, and when we launch this PDF, it will generate a lot of calls to the Service Desk (more than 1000 users).

 

3. The Web Service uses Simple User Name/Password for authentication to run the webservice. I need to embed the User Name/Password inside
the PDF, and also prevent any user for getting them, how ?

 

4. I want to send the Staff ID Parameter to the Web Service Automatically which is the Logged In User ID (Windows). This is the same value of the "Login Name" which can be accessed using Acrobat JavaScript. But the problem, this script must be trusted, and it will be a long story. Any ideas how to implement this requirement using simple methods ?

 

5. If I manage to send the Staff ID Parameter to the Webservice automatically (Logged In User ID), also, I want to prevent the user from sending a different user ID, ie, prevent him from using Import Data to Form to specify a Different User ID for the Webservice Parameter. How ?

 

I appreciate your help if you have any ideas about the above.

 

Tarek.

Cookbooks are Back!

Programming forms on the web to automatically open in Reader/Acrobat

$
0
0

I create a lot of forms that are put on a websfor people to open and complete.  We are having increasing problems with people not being able to open the forms for varying reasons on browsers.  Is there a way to put some programming in the form so that when it is opened it is automatically opened in Reader/Acrobat and if someone doesn't have the software they are prompted to go download it?

 

Thanks!

Viewing all 5571 articles
Browse latest View live


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