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

Urgent !!! How to trim spaces of an email filed ?

$
0
0

Hi,

 

I have an email field in a form ,which have a validation at the time of submission of form as shown in the below .

 

function isEmailValid(fld){

                    var result = true;

                    if(fld != null){

                              var r = new RegExp();

                        r.compile("^[a-z0-9_\\-\\.\\']+\\@[a-z0-9_\\-\\.]+\\.[a-z]{2,4}$","i" );

                              result = r.test(fld.rawValue);

                    }

                    return result;

          }

 

but if user by mistakely enters the space in that field  at the time of validation it is  showing an error called "Invalid Email Format"

 

I need to trim those spaces either modifying the above regular expression or the best way

 

Please suggest ..

 

Thanks in Advance

Bharathi


Change form caption value base on drop down

$
0
0

I am working on a form with multiple languages (e.g. English + Chinese). What is the best way to change the caption when user select the Language Dropdown?

 

I have tried to use Javascript to setup the caption value on exit event, however, it seems the script not able to support a double byte character (chinese).

Is there a way can be done with binding xml data (UTF-8)? can any one share with me about the format of the xml and how to create the binding?

Required Fields not posting error message if null

$
0
0

I have a form that I have created in LiveCycle Designer ES2 (v9.0), that is a dynamic XML form. I have pop up itmes based on if a item is selected or not. I also have a submit emial button for the user to use once the form is complete.

 

Here is my issues, I have several fields that are required, of all types (dropdowns, fill-ins...), that I have entered the Empty Message with a message that the field needs to be filled in. When I hit the submit button, there is no message and the email box pops up. On the email button I have some script that uses various fields in the subject and body of the email. Of course those areas say 'null' instead of the required fileds, because they are blank. Long story short, I am getting no message when the required fields are blank.

 

I am not getting any message that tell the users that there are blank fields. ANY HELP WOULD BE NICE. I am not a programmer so go easy on me.

 

 

If there is anyway I can get a speedy reponse?? as usual, I am under a deadline for this to be completed...

 

 

 

Thank you,

Teresa

Trouble with the average function.

$
0
0

I am still having a problem getting my form to calculate an average the way it should.  On one form I did when I set up an formcalc to average ten places and not average any cell that is blank or null I used the [*] and works just fine, but on the next form that I did that only has three rows it includes the null cells even through I used the [*] function.  What am I doing wrong?

Radio Button Data not Merging

$
0
0

I can "merge data to spreadsheet" for all my text fields, but neither the field names nor data come out for the radio button fields. Any idea why?

 

I've bound item values to the exclusion group, set data binding to "Use name", and I haven't renamed the individual button objects. I have renamed the exclusion group so that the object names are unique.

 

Thanks.

Set and get Custom Sceen Reader text

$
0
0

Hi All,

 

I know how to get and set a field's caption, name & tool tip but I was wondering is there a way to set and or get whats in the custom screen reader text.

I want to do this javascript for example for tooltip its

  fieldname.assist.toolTip.value

 

Thanks

 

Brad

Read and store XML data

$
0
0

I have created a connection to a sample XML file and was wondering how you would go about reading from that data source and storing the data using JavaScript so that different data can be displayed based on user choices (e.g. dropdown list)? Can this data also be stored so that an end-user can open the PDF without needing to have a local copy of the XML file on their machine?

Sample XML Data

$
0
0

Okay so I have created a data connection using the Sample XML data method but I don't want to bind the data to objects to be populated dynamically. What I actually want to do is programatically populate objects with the data so how do you go about traversing the XML data??


How to copy data from a fixed table row to 1 of 2 Summary tables

$
0
0

Looking for a solution to copy specific data from an Inspection table (which has a fixed/pre-determined number of rows) to 1 of 2 Summary table (A or B).

 

Think of it as Inspection Form:

 

Each row in the Inspection table with have an inspected item field [Topic] and and a drop-down to indicate whether or not the item passed inspection. If the user select "Yes" for pass, nothing happens. However, if the user selects "No" for fail, an alert will pop-up asking if the topic should be added to Summary table A or B (perhaps via xfa.host.response).

 

Once the desired table is indicated, the Topic field data (from the active Inspection row) will get dynamically added (new row) to the indicated Summary table. Note: the first field in each row of the Summary table(s) will have a Topic field where the copied Topic data (from the Inspection table) will populate.

 

As the Inspection form is completed, the same process will happen as described above...for all "No" responses, new rows should be dynamically added to the appropriate Summary table as needed (one for each "No" response and auto-populated Topic text).

 

Make sense?

 

Is this possible, or too complicated to achieve?

 

Thanks in advance!

Create a script that will Email Subject from Text Field

$
0
0

Hello,

 

I am new to scripting.  Please bare with me.....  i've got my form all set. 

 

I am looking to have the user click on the "send email" button I created.  Then it will take the data the user entered in a text field (last name) of the form and put that into the subject line of the email before they send it.

 

So the suject line should read something like:  New User - Williams

 

i have scoured the forums and found some help but not in full.  I found the scripting section but don't know how to create it or what the script should look like.

 

Any help would be greatly appreciated.

 

Thank you for your patience!

Exporting a subset of data

$
0
0

Hi folks,

 

I have a pretty large form consisting of over 50 pages. There are roughly 600 fields of data. The form is used in the new account opening process for out company.

 

There is alot of data that is not actually required for the actual account set up. Its mostly regualtory info.

 

The deprtment that opens the account needs only about 10 to 20 of the fields. Is there a way to export just those 20 fields rather than the entire 600+ fields via either xml submit button or exportData("",0)?

 

Anyone have a similar experience that came up with a solution?

Is this possible?

$
0
0

I was wondering if anyone could tell me if the following solution is possible using LiveCycle designer?

 

End User

A PDF form which has functionality that will populate set tables and charts based on the users selections from dropdowns, buttons, etc. The data needs to be embedded within the PDF but the form has to be dynamic so that the charts can change when the user selects different buttons/dropdown items.

 

Publisher

A publisher will open a form in LiveCycle that is associated with XML/Excel files. If these files had been updated prior to the form being opened in LiveCycle designer then when it is opened in Designer the new data will be imported into the form and then when published the data would be embedded in the form. The editor would then send the PDF to end-users and when they next open in Adobe Reader they would see the tables and charts based on the updated data.

 

Any ideas or possible non-expensive solutions would be much apprectiated.

How to order some pages included dynamically

$
0
0

Hi everybody.

 

I created an order form for business cards in french and in english. The user fills in the form. Two cards appear showing the layout and two others are hidden. We used the latter to print. So far, everything is allright.

But I encounter 2 problems when I have many pages.

 

- When there are several pages, I have to type the password (000) after each one. I prefer to enter the password after the last page and all business cards should appear.

 

- When I enter the password, the cards to be intended for printing appear in an alphabetical order (all english cards and all french cards). I prefer getting them ordered by name or by page (page 1 english-french, page2 english-french,...).

 

Here is the link to download my file : http://www.filedropper.com/questioncards_1

 

I hope I have been clear

 

Many thanks for your help.

Validate is it a good date or invalid date?

$
0
0

Hello,

 

I have placed a DATE object field on my form, and did NOT placed any VALIDATION PATTERN, hence user can enter any data manually

 

But, bcz of some reason, we don't want to use VALIADATION PATTERN

 

But at the same time, we want to validate user entered data is a valid date or invalid date?

 

Pls. let me know the code snippet of JS or FormCalc, which validates whether its a valid date or not?

 

Thank you

com reference c#

$
0
0

Hi,

 

is it possible to make a com reference (c#, java or what else) and to work with it?

i just have the LiveCycle Designer ES3.


Expandable Sections or pages in LiveCycle, best solution

$
0
0

I have a form that needs tweaking.  I need to be able to add additional info for certain sections of the form if need be.  I am not sure the best way to  go about without adding a extra page that may get printed sometimes that could be blank.   I also need to allow for expandable fields that could grow as the user enters text into them allowing the entire area to display and print.

values ​​loading XML file

$
0
0

HelloI have the followingxml fileloaded into apdf

 

myxml fileis structuredin this way:

 

<root>

     <list>

          <field code="A">

               <field1 code="100"  />

          </field>

          <field code="B">

               <field1 code="200"  />

          </field>

     </list>

</root>

 

In the firstdropdownlistI was able toload thefieldvalues​​(A, B, etc.)

  following this tutorial:http://forms.stefcameron.com/2006/07/29/dynamic-properties/

works well

 

 

the problem I havenowis how do Iloadin a seconddropdownlist, the values (100, 200) ​​from thexml fileaccording to thechoice madebefore?

 


 

Adding multiple numeric fields in a expanding table

$
0
0

Hi Alll,

 

I have created a table where the user can add multiple rows. One column of this table contains numeric fields. At the bottom of this column I have a numeric field where I want to auto sum the rows above.

 

I have managed to achieve this in a table with fixed rows however I cant seem to do the same in the table where the end user can add rows. Please can someone inform me if there is any javascript available to avhieve this.

 

Many thanks in advance

 

Lee

Generating a barcode with data from another field? (Acrobat XI/LiveCycle ES 8.2)

$
0
0

I know this has probably been answered somewhere else before but for the life of my I could not find it.  Please forgive this noob.

 

I have a form that I created in LiveCycle and I have one field that will need a seven digit number populated in it that the customer will have to pull off a bottle.  I want this seven digit number to turn into a barcode (128).

 

I am aware all you have to do is click on the barcode, type the numbers in and you get your barcode.  However I want the data to populate from another field on the form.

 

Capture.JPG

 

Any ideas?  I thank you in advance

 

Todd

E-mail subject

$
0
0

I have Email button and one two drop down list.

 

I need when is chosed something in DropDown to write that in subject.

 

Email is always the same.

 

Thank you

Viewing all 5571 articles
Browse latest View live


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