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

XSL support level

$
0
0

I have a form that will need to be transformed on the way in and on the way out. I am using MapForce to create the mappings between the two. It appears that some of the functions I need are XSLT 2.0 exclusive. Does LiveCycle support XSLT 2.0?


Extract Year (only) from Date Field and Display in Text Field

$
0
0

I need to extract the year from a user entered date field and display the year in a text field. Can someone help me with the correct script to do this?

How can I replace a series of tags in text?

$
0
0

I am using LiveCycle Designer 10.4 in the SAP environment to create PDF customer quotes. All data is fed into my layout from the SAP system.

 

Some of the legal text has variables that are automatically populated by the quoting system. The text is fed into my layout with the variables called out by bracketed tags. My mission is to remove the bracketed tags so they do not display in the output that goes to the customer. For example, in the image below, I want the [V1], [/V1], [V2], and [/V2] to be removed.

sample_tags.gif

 

I have tried both JavaScript and FormCalc to no avail on the initialize and exit events.

 

Example code that didn't work is below.

 

FormCalc

$.rawValue = Replace($.rawValue, "[V1]', "")

This script did not find the tag. And even if it did, I'm not sure how to make it loop and find the next tag.

 

JavaScript

var textWithTags = data.Page1.sub_QuoteTexts.TPAtext.rawValue;

var textNoTags = textWithTags.replace("[V1]", "");

var textNoTags = textNoTags.replace("[/V1]", "");

var textNoTags = textNoTags.replace("[V2]", "");

var textNoTags = textNoTags.replace("[/V2]", "");

data.Page1.sub_QuoteTexts.TPAtext.rawValue = textNoTags;

 

This JavaScript did work when I set it up in a little HTML page, but not when I ported it into my layout in Designer.

 

Any help would be very much appreciated.

 

Thanks!

Adding xml data as metadata.

$
0
0

Hi, I need to find a way to add a whole xml (probably hundred of lines) as metadata or as any other kind of attached data to a pdf.

 

This data will be read later using Actionsript via XMP.

 

Is this possible?, can I store a whole xml inside as metadata?.

 

Thanks.

INSERT INTO multiple rows from http post

$
0
0

I have a button that submits livecycle form data via http post. The form is dynamic and flowed with rows that can be added and removed. The http post sends data as

rowno=1.00000000&date_line=2014-10-07&name=Dan%20Williams&affiliation=Enterprise&checkno=1 701&amount=20025.00000000&total=20250.00000000&notes=&date_deposit=&rowno=2.00000000&date_ line=2014-10-07&name=Harper%20Lee&affiliation=Enterprise%20B&checkno=1702&amount=225

 

No matter how many rows, INSERT INTO only inserts the last set of data. So if I have i complete three rows in my form, only the third rows is sent.

 

Any ideas how I should change my form or php? Thanks!

How to calculate hours from clock-in and out?

$
0
0

i am now doing an overtime claim form for my company, and i want to know how to calculate hours from the clock in and clock out field. i had done this in a table layout where the columns are for clock in (in 24-hours format), clock out(in 24-hours format) and counted hours.

 

CLOCK INCLOCK OUTCOUNTED HOURS

Resizeing a coloumn width - Adobe live Cycle Designer

$
0
0


Dear Community Members,

 

I am very new to Adobe LiveCycle, and trying to develop a dynamic form which works for SAP ByD.

 

The Scenarion is I have a table with 8 coloumns in it..

On a certain condition two out of 8 fields needs to be hidden (Perfectly done) .

 

Now I have to increse the width of 3rd column width so that table fits in to page printout.

 

I tried doing something on sub form 'initialize' event..

 

$.coloumnwidths = 30mm 30mm 30mm 30mm 30mm 30mm.

 

But it only change the width of first coloumn (Which I dont want to Change) I want to change the width of 3rd coloumn only.

 

A help on this will be highly appriciated..

 

 

Thanks In Advance.

Ashutosh

some of my fields are not working. I can type text in some of the text fields I have created, and some cannot accept text. They are all set the same, yet some of the fields are not allowing me to add text to them.

$
0
0

some of my fields are not working. I can type text in some of the text fields I have created, and some cannot accept text. They are all set the same, yet some of the fields are not allowing me to add text to them. The fields are set as required. I'm not sure what I'm doing wrong. I have been working with livecycle forms for about 6 years, and this is the first time I have experienced fields that do not allow me to add text to them. Any advice or guidance would be greatly appreciated.


Clear default value of text field in PDF form

$
0
0

Hi,

 

Is there a way in LiveCycle ES2 to clear the default value of a text field when a user clicks in/on the actual field? Similar to onFocus javascript event.  Any suggestions/examples would be greatly appreciated.  Thank you.

Form submitting even though required fields are empty

$
0
0

I have created a form that has several mandatory fields, which are all showing up with red boarders around them.  When I try to submit the form without entering data into the first two mandatory fields on the form I get a pop-up box saying that not all of the required fields have been entered.  However, if I enter data in those two fields and try to submit the form it goes ahead and submits, even though there are many other fields on the form that are required and are showing up with the red box around them.  Why is my form able to submit even though these required fields have not been filled in?

saveXML does not apply XSL transform

$
0
0

I have an XSL that I want to use to populate a 2d barcode. I've set the data connection like so:

 

However, when I call

  this.rawValue = xfa.record.saveXML();

it does not apply the XSL transform. What do I need to do to force the transform? If I do a Export Data operation from Acrobat, the resulting XML file is transformed, so I know my transform works.

Change Pagination's Position of subform

$
0
0

Hi, i have a form with 8 subform who are page's form. For each page i have associated one master pager, who are show in the picture below.

Are there a javascript to change at runtime the Pagination's position of subform? I need to change position from "Pagina_DS" to "Pagina_Vuota".

 

Kind regard.

 

pagination position.jpg

Adding dashes as numbers are typed

$
0
0

tl;dr: I'm trying to make a script that will add dashes as numbers are being typed in a field and remove them and the previous number as the user backspaces over the dashes.

 

I have a form that I'm working on which includes a field for a credit card number. I want to add a dash (hyphen) as the user types the credit card number. I can get the adding part to work, but I can't get the field to backspace over the dash AND the previous number. I think the problem lies with my (lack of) understanding how xfa.event.newText and xfa.event.change work.

 

Example: The user has entered "12345". The dash is automatically added by script to give us "1234-5". The user wants to change 4 to 6. When the user reaches the "-" I want the backspace to take the dash as well as the previous number--the 4. That way, when the user has just "123" and types 6, the dash will be added automatically (the script already handles this part).

 

Here's what I've got so far. (The text field is a comb of 19 characters.)

 

if (xfa.event.newText.length < xfa.event.prevText.length) {  if (xfa.event.newText.lastIndexOf("-") == (xfa.event.newText.length - 1)) {    this.rawValue = xfa.event.newText.slice(0,(xfa.event.newText.lastIndexOf("-")-1);  }
}
else if (xfa.event.newText.length == 4 || xfa.event.newText.length == 9 || xfa.event.newText.length == 14) xfa.event.change = xfa.event.change + "-";

 

Message was edited by: Jason Rana Corrected a typo in the code

Locked Fields

$
0
0

For some reason a form I'm working on unexpectedly locked some text fields yet others are not locked. I changed the appearance of the locked fields to solid box and my fields magically unlocked. Is anyone else experiencing this?

Validation / Reset Functions, easy to manipulate and to change Forms!!!!

$
0
0

Hello everyone,

 

I've just opened this discussion free to everyone to discuss about any easy way to validate / reset form fields.

I'm providing a development tool to be used in LiveCycle Designer with a new way to validate and reset forms in any ways. You can change the design of PDF Forms without having to change much code.

The validation function is to validate any field which returns null / 0

 

It is independent / self-responsive to the design of any forms. I'm working on the function to make sure it can work with any kind of settings set in PDF forms.

 

The objects which contains the functions are not to modify(unless you know what to modify), you can add any specific validation to your form by adding field/subform names in the exception arrays.

 

All your specific validation is to be inserted in the validate buttons. It is also possible to validate only a part of the form, 1 page, 2 pages or a subform only.

 

Instructions to use the functions are in the PDF Form to download below, take a look, feedback and questions are always welcome as well.

 

TemplateDesign_Validation_Reset_Form.pdf - Google Drive

 

Hope this will help some of you.

Mag


Reset Data Row Button

$
0
0

Stuck. I'm trying to setup a button to reset only the data in the row where the button is. Anyone? Pls.

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?

possible to purchase LiveCycle Designer ES2?

$
0
0

My company needs to edit our existing LiveCycle forms, but they are in the old ES2 format and the forms open in ES4, but some of the the workflow scripts are not viewable in ES4. Based on what I've read, the old XFA forms have to be converted to make the changes I need to make and that is not possible for us. Is it possible to get ES2 somehow? I've searched and yesterday, I swore there was a link to contact Adobe for previous versions of LiveCycle, but I can't find it now. Thanks in advance!

[LiveCycle Designer] Send Field Value with FDF Response

$
0
0

Hiya. I'm trying to send two FDF responses, a status message and a field/pair value, from a PHP script that has processed a HTTP POST. The status message is sent to the form successfully, but the field value is not sent to a form created in LiveCycle Designer (ES4 Version 11). Here's what I have:


<?php
header('Content-type: application/vnd.fdf');
// read and store the data however you want
// reply with some FDF data
echo <<<RESPONSE
%FDF-1.2
1 0 obj<< /FDF <<
/Status (Wham bam! Journal data sent electronically. Save a copy of this PDF for your records.)
/Fields [ <</T(batchnum)/V(testt)>> ]>>>>
endobj
trailer<< /Root 1 0 R >>
%%EOF
RESPONSE;
?><?php


I think I have tried the gamut, removed "!", "copy", "for" from the status message; adding quotes, single and double, as well as ``; spacing; changing and verifying field names; send only the /Status and sending only /Fields (btw no errors while is still not sent); and on. Additionally, the above PHP code works perfectly, sending both status and fields, on a form created in Acrobat Pro XI. But no success in LiveCycle where I need the form created to dynamically manage rows and such. Ideas? Anyone?

Barcoded pdf form

$
0
0

Hi

 

We had developed a pdf form with few textfields, checkboxes and dropdown list in livecycle designer. It contains a QR code and it works fine on the PC where it was developed. But when I open the same pdf on another PC, the barcode is showing as greyout. Do I need any other license or how can I get it working. Please help.

Viewing all 5571 articles
Browse latest View live


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