Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Forms
Viewing all 61369 articles
Browse latest View live

Check for required fields before locking subforms and submitting

$
0
0

Hello,

I have a 5-page form with many questions, to be completed by the original requestor and multiple approvers.  What I'm trying to do is have the original requestor's Submit button on p. 3 lock the input on the first three pages, but first check if all those fields have some content.  I currently have all the fields on pp. 1-3 set to "Required" in the object properties, but my script still locks them when there's is one empty one.  Here's what I have:

 

//Lock portions of form
Page1.access = "readOnly"
Page2.access = "readOnly"
Page3.access = "readOnly"

//Save document, allow user to change name
app.execMenuItem("SaveAs");

//Submit via e-mail
Submit_REAL.event__click.submit.target = "mailto:someone@some.com" +
"?subject=Subject text" +
"&body=Message";
 Submit_REAL.execEvent("click");

 

The automatic check for required fields happens after the pages get locked.  I would like the check to stop the process before it locks the pages.  Is there any way to check all at once that all "Required" fields on those pages have some content before allowing the script to proceed?  I know how to script it to manually check the 50 or so questions on those pages, but I would like to avoid that.  Thanks for any help.


How to open Livecycle form in all browsers?

$
0
0

Hello,

 

I am new to Adobe LiveCycle Designer. I have Adobe Acrobat Pro X installed and it comes with LiveCycle Designer ES2. My question is that I created a fillable form in LiveCycle Designer and posted to the web. I then founded out that my PDF form can be opendded in IE 11 when clicking on the form link, but got error when opening in Safari, Firefox and Chrome. I did some search and got to know that LiveCycle Designer form is not compatible with the built-in PDF viewers in certain browsers. End users will have to change their browser settings, which I don't like.

 

I also noticed that the federal government’s PDF forms are also created in LiveCycle Designer when you download and see its ‘File Properties’,  those PDF forms can be opened in all browsers, like Safari, Firefox, Chrome, does anybody know how could they do that? Anything I should do with my form so it can be opened in all browsers ? Below are the PDF forms on IRS and USCIS websites:

 

http://www.irs.gov/Forms-&-Pubs

http://www.uscis.gov/forms

 

Thanks for the kind help.

 

Nancy

javascript if statement

$
0
0

Hello,

 

I am not good at javascript so I got this button "Save as..." and a javascript messagebox comes up asking if they secure the document before save it:

 

xfa.host.messageBox("WARNING", "Did you secure the document prior saving it?", 3, 2);

 

If they say 3 (yes), the javascript code should be apply: app.execMenuItem("SaveAs");

 

If 2 (no), go back to the document. Anyone can help?

 

Thanks!

How to get filename of the current pdf form?

$
0
0

As my handle suggests I'm really a newbie.

From my research I know that the filename of the pdf (which shows in the form properties) is somehow accessible using xfa.resolveNode but I don't know how to ask for it. ie. I don't know the reference to use for request to filename.

 

 

just wondering if anyone could quickly point me in the right direction.

 

also is there a good reference for all the objects in the DOM and how to get at them?

Thanks
George

iPad Adobe Reader and LiveCycle Forms

$
0
0

I have just created a form in Adobe LiveCycle Forms through Adobe Acrobat 9 Pro and cannot get it to work on my iPad Adobe Reader App.....  I would like to create a pdf form that works on the iPad Adobe Reader app. Please help.

 

Cheers.

Simple email validation in forms

$
0
0

Hello All,

 

I would like to do a simple email validation, the built in email validation pattern(text{OOOOOOOO'@example.com'} ) is not really useful.

 

What is the best to validate an email in the form which was built using livecycle designer.

 

Is there any other pattern I can use?

 

My requirement is simple, the email should contain ‘@’ and a dot, something like ( xxx@xxx.xxx)

 

Any help is much appreciated.

 

Thanks and regards,

 

Calculate Difference in Days Between two Dates

$
0
0

Hi,

 

I'm trying to figure out how to calculate the difference in days between two dates using JavaScript in LiveCycle. (JavaScript knowledge = minimal)

 

Where "Start_Date" and "Current_Date" are the names of the two dates in the Hierarchy palette. (both Date/Time Field)

*Current date is using the Object > Value > Runtime Property > Current Date/Time

 

I need a Text or Numeric field displaying the difference in days. (Difference_in_Days)

 

I've noticed the following code being pretty standard amongst other responses:

 

var

 

Start_Date =new Date(Start_Date);

var

 

Current_Date =new Date(Current_Date);

 

var

 

nAgeMilliseconds = Current_Date.getTime() - Start_Date.getTime();

 

var

 

nMilliSecondsPerYear = 365 * 24 * 60 * 60 * 1000;

 

 

I know there's code missing, and the above code might not be correct.

Please advise.

Invalid append operation

$
0
0

I get the following message(in my livecycle server log) when one of my forms loads in workspace.  Its only the one form that this occurs in and the form appears to work correctly.  Does anyone have any idea why this warning occurs and how to clear it?  Anyone know what the specific fault lines (2812 and 1825) refer too?  I was thinking it would refer to the xml source inside designer but it didn't appear to relate.  This causes a lot of spam in the server log file and it could be causing an error that I haven't been able to find yet.

 

__________________________

 

 

2011-09-16 13:37:00,203 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] Invalid append operation: field cannot have a child element of #text
2011-09-16 13:37:00,203 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] The fault occurred on line 2812.
2011-09-16 13:37:01,781 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] Invalid append operation: field cannot have a child element of #text
2011-09-16 13:37:01,781 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] The fault occurred on line 1825.
2011-09-16 13:37:01,813 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] Invalid append operation: field cannot have a child element of #text
2011-09-16 13:37:01,813 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] The fault occurred on line 1825.


Filling out form with pre-determined values

$
0
0

I am new to LiveCycle. I want to set up a form where if a person hits a button or check box, it fills in the form with predetermined variables. I want to there to be several different buttons/check boxes which if selected fill out the form with the predetermined values. These values would be different, depending on the check box/button selected.  Is this possible?

 

Just to help understand a little more, I am designing a medical prescription form.

 

If the practitioner selects 'Option A' I want it to automatically fill out the required fields in the rest of the form with the predetermined values (set by me).

 

Similarily if the practitioner selected 'Option B', it fills out the form with another set of predetermined values.

 

Hope this makes sense.

 

Thanks

Adobe LiveCycle Dynamic XML forms & Apple iPad

$
0
0

Are Adobe LiveCycle Dynamic XML forms viewable/useable by Apple iPad and Apple phone or other mobile devices? 

Getting C++ Runtime Error R6025 trying to open LC form

$
0
0

This is a form I created with LC 8.05/Acrobat Pro 8.1, now on my client's website at http://www.rachc.org/docs/CommonsRR4Form-Guidelines.pdf  -- is there something seriously wrong with this version of Live Cycle Designer? Or is it the current crop of Readers or 8.3 Acrobat pro? With IE the website completely freezes, but with Mozilla, just crashes acrobat. What's UP??

 

MS C++ Runtime Library

Acrobat.exe - Runtime Error

R6025 - Pure Virtual Function Call

 

Research on this Error shows faulty programing calls in acrobat -- is the latest versions of 8.3 and Reader causing this? If not, What then?

 

BarryG

Help with adding a button to copy a .txt file in to a text field

$
0
0

Hello,

 

sorry if this is a very simple thing to do but its been a long time since I last used livecycle and javascript and my knowledge of javascript is not very good.

 

I am trying to insert text from a .txt file in to a text field in a form, I think I can use importTextData but I have no idea how to add this to a button?

 

 

Thank you in advance for any help on this.

 

Rick

PDF to MySQL database

$
0
0

So here is the enigma. I set up a PDF form with fields that are correctly bound to the backend MySQL database - i.e. the connections work, I see and can chose the correct table values, all seems well. The submit (add), update buttons seem to work fine (i.e. the xfa code is correct) since all the data dissapears from the form, but when I query the database, no data ?

 

So where is the error? I get no error messages at all.

 

Advice always appreciated. Not sure if this is a MySQL end issue or not.

 

Shai

Calculate two values (SAP HRFORMS)

$
0
0

Dear All,

I need held calculating two values within HRFOMS.

 

I would like to have a screenfield with the value of the current page Therefore i got a global variable G_total_pagecount and i have the current page xfa.layout.page(this)

I tried  the following

data.#pageSet[0].Startseite.Titel_und_Anschrift.Allgemeine_Daten.Org_Daten.Seite_global::r eady:layout

$.rawValue = $record.G_TOTAL_PAGECOUNT + xfa.layout.page(this)

and received no value

or

var page = parseInt(xfa.layout.page(this), 10); // , 10 erzwingt die Umwandlung als dezimalzahl

var global = parseInt(xfa.record.G_TOTAL_PAGECOUNT, 10)

var total = page + global:

this.rawValue = total.rawValue;

 

But both did not work

 

I would be happy to get any new idea

 

Angela

Guardar pdf con formulario

$
0
0

Hola, he creado un pdf que contiene un formulario.

 

Este documento de pdf tiene todos los permisos habilitados.

 

El problema es el siguiente:

 

- Al abrirlo con el reader me deja escribir pero no me deja guardar este documento con los datos introducidos.

- He descargado la aplicación trial del liveCycle design y aun guardandolo con esta herramienta sigo sin poder guardar la información de dicho documento.

 

Mi pregunta:

 

- ¿Que es lo que hago mal?

- ¿Ya que si yo genero un documento con todos los permisos porque no puedo guardarlo?

- ¿Y lo que es mejor, teniendo un documento con formularios que se puede guardar, si lo abro con esta herramienta le quita los permisos y poisteriormente ya no puedo guardar ese documento con los datos del formulario ?

 

Gracias y disculpen las posibles molestias.

 

Atentamente Dani.


Auto fill same fields in multiple different pdf forms?

$
0
0

I wish to enter information such as project name, company name, date, etc. into a single data sheet.  Then I need to autofill the same two or three fields across multiple separate pdf form files.  In this case I have approximately separate files to autofill.  The forms are all different however, they have the same two or three fields.  Any ideas?

 

I have been searching the internet for ideas or methods and haven't found a single solution yet.

 

Thanks.

Error msg. "an invalid argument was encountered "

$
0
0

Hi,

When I open up a form that I am creating I get " an invalid argument was encountered ".

I'm using LiveCycle Designer ES2 with Windows 7.

Can anyone tell me what this error 'generally' refers to?

 

Thank you in advance for your help

Adobe LiveCycle Designer ES 8.2 Dropdown List Fill from a spreadsheet

$
0
0

I am a new user to Adobe LiveCycle Designer and have created a form which a manager is required to fill out for each of their employees.

 

I would like to create a drop-down object which will contain the name of the employees, so the manager can just pick the employee from a dropdown list and then fill out the evaluation.  We have over 1000 employees, so I don't want to type them in one by one.

 

Please let me know how to link the list of employees to this form from another source. 

I can put the list of employee names into an Excel spreadsheet or an Access Database.

 

I have tried following information posted in different places in the web, but I must be doing something wrong??

 

I would appreciate a step by step guide of instructions to help me accomplish this task.

 

Thank you in advance for your assistance.

How to disable email option when creating a form

$
0
0

I am creating a pdf flyer in either Pro or LiveCycle. And I want to provie a space for people to enter their personal information (form fields).

 

I want them to be able to save this and print it. I don't want to give them a submit option (to send via email). (So I will be "distributing" the form - and I can't Distribute without providing an email.)

 

I know I can remove the Submit button from the form, but even when there is no Submit Button, when you open the form in READER (which most will be using), Reader itself provides an option to Submit form.  How do I prevent this??

 

Or, is there any way to create a fillable form that will allow others to save without "distributing" the form? I am thinking the "distributing" is what is causing the email to be linked to the form.

 

I hope I have explained this well. Any direction would be appreciated.

Thanks!

PDF binding to MySQL databse - how is it done?

$
0
0

How can I bind data entered in to a Dynamic PDF form to reside in a MySQL database. I seem not able to build a connection.

So here are the steps I follow:

 

Binding / New Connection / Name: testdata ; Description: OLEDB database / Connection String: build: SQL Native Client / Data Source: location of the SQL database (.mwb) ; Log on to server: localhost

 

But when I test the connection I get an initialization error and login time out.

 

So my question is:  How do you connect the PDF fields to a MySQL database ? and what am I doing wrong ? Is it a feasable process to bind also check boxes and other fields to a database ? How would you bind data dynamically - say if I choose a certain field from a dropdown menu, certain other fields will populate via the database ?

 

Thanks again for all help and insight.

 

Shai

 

PS I attached a sample form (not yet completely integrated to accept certain data) and a sample MySQL database (no data inside).

Viewing all 61369 articles
Browse latest View live