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

How do I email a specific page

$
0
0

Hello everyone

 

Quick question should be easy for an experienced javascripter. I have a multipage document and I have created a button to submit to email. Below is the code I am  using.

 

Please help me with making it so that only the page that the button is on is submited by the email.

 

Thanks in advance.

 

Code:

 

var subject = MainPage.RadioButtonList.rawValue;

 

var myDoc = event.target;

try {

    myDoc.mailDoc({

        bUI:false,

        cTo: 'myemail',// Replace with actual receiver mail address.

        cSubject: subject,

        cSubmitAs: "PDF"

    });

} catch (e) {

    // exception handling...

}


Need help with conditional pagination breaks and overflow leaders

$
0
0

I cannot figure out how to prevent a table header row (or repeatable subform that is being used as an overflow leader) from being "stranded" at the bottom of a page in a dynamic, flowed form and thusly being "separated" from the table it is intended to "head".  I think the answer must lie in having a better understanding and mastering conditional page breaks in conjunction with overflow leaders.  But, I cannot decipher how to do it from the online help available to me.

 

My form is a series of "tables" in which the end user will enter as much text as he wishes.  The fields/cells will expand as needed to accommodate the text.  The user may add rows to the tables using instance control buttons. The tables and fields work beautifully within the flowed, dynamic form with no problem.  The table headers and the repeatable subforms (used as overflow leaders) all work correctly by repeating themselves at the top of each page break just as I have defined them. 

 

However, in my form design (or as the user enters data in the expandable fields and tables), any table that flows toward the bottom of the page is at risk of leaving its header behind as its body rows break ever so nicely onto the next page.  Of course, the header and overflow leaders repeat at the top of the next page as they are intended.  But, having that "stranded" header row sitting there by itself at the bottom of the preceding page is not desireable.  It just looks weird.

 

I've tried using "keep with next" on the pagination tab, but does not solve the issue.  That only pushes the header to the next page if the table breaks the page, leaving the table entries on the preceeding page without any header at all. I've fooled with the conditional page break settings, but they elude me.

 

Any help or suggestions would be greatly appreciated.

Crash due copying between files

$
0
0

Hello everybody,

 

I got the following problem:

 

In Adobe LifeCycle Designer ES4, we created an interactive pdf, used files in this case were Numeric, Text and Image (to paste images for a report).

Having multiple reports for the same customer, we wanted to copy data from the text and numeric field from one file to another.

We opened the created file in Adobe Acrobat and saved it with extended rights for Adobe Reader.

 

With both files open, Adobe Reader crashes regulary after pasting data or sometimes simply scrolling but with no visible pattern. The only reproducible crash happens after copy, paste and then hitting Tab.

 

I read in some forums, this problem could be solved deactivating Extended Security but nothing has changed.

 

Any ideas?

 

Regards,

diwa_gruppe

 

EDIT: Used Adobe Reader version is 11.0.3

Mimic Excel Fill-Down function in table

$
0
0

I am creating a table that can have the number of rows vary by what the user selects.  Some of the columns will have the same value as the provious row and they would want all the rows to be filled with the same column value.  Maybe a checkbox above the column.  Any ideas on how this can be done.

Floating fields on a master page

$
0
0

Hi,

 

Could someone tell me if objects on master pages can somehow "know" which page/subform they are rendered on?

 

I have a floating textfield placed on a master page. I'm trying to figure out a way to make the text on the floating field change based on which page the floating field is rendered on. So, for example, if the floating field is rendered on a page named as "subform1" the value of the floating textfield would be "This is subform1".  This would be useful as I have many sections in my form that need only slightly different master pages. I'd rather use one "dynamic" master page for all of these sections than have many...

 

This would also be useful if you have buttons on master pages that need different functionality depending on which page they are rendered on.

Need to add pages to .pdf

$
0
0

I was given a .pdf that was created in LiveCycle Designer and when I attempted to add additional pages to the .pdf I am unable to. I tried both the drag and drop and the insert page option. The insert page option is actually greyed out. There are no security settings enabled and the .pdf is not a read-only. Is there anything I can do to change the file so that I can add additional pages?

ES4 Designer mobile capabilities

$
0
0

I have a form developed in LIVE CYCLE ES2, and want to use the same-similar-form on a mobile device. All I need is to have emplyees fill out the form off line-save-and email, using our intranet, Would ES4 Designer allows me to perform this task?  If not, what do I need to buy.

Needs help with my date validation script

$
0
0

I have date field in my form I am working on, and when the date picker is used, it works fine with the date format as YYYYMMDD. However, when it is manually entered wrong, it only pops up the error message, but tabs to the next field. Is there a script that will set the focus back to the field, and only tabs out of it when the user input is incorrect. I wrote the below script, but it is not working, and I do not know why it is not.

 

 

Create a date() for parsing information. 
 var sDate = Date.rawValue; 
 var oDate = util.scand("yyyymmdd", sDate);     // Store date values. 
 var nYear = oDate.getFullYear(); 
 var nMonth = oDate.getMonth() + 1;  
 var nDay = oDate.getDate(); if(nDay > 31 || nDay < 1 || nMonth > 12 || nMonth < 1){      xfa.host.messageBox("Please enter the number using numerical characters only in the format YYYYMMDD");     xfa.host.setFocus("DateTimeField1"); }

Thanks

v/r

 

Tammy


compare date fields

$
0
0

i have two date fields in different subforms.

the first must be older then the current date

and the second must be newer than the first date.

 

i tried to create a javascript to validate the fields, but i don't know how to do this

anyone?

Uncheck RadioButtons

$
0
0

Hi there,

 

I have a question: is is possible to uncheck a radiobutton?

 

The form I´m working is to be filled electronically or if you want you can print it, so if by mistake you click on a radio I´d like to know if you can click it again to uncheck it (I know that you could close and open the form again, but you would have to fill it all again)

 

Any ideas?

 

Thanks!

 

01.png

 

02.png

 

03.png

Java code for current date plus 30 days

$
0
0

I've searched this forum and google to see if I could get something to work with negative results. I created a form on Livecycle 8.2 and I'm trying to set a due date 30 days from todays date. When the form is opened I have the current date and time, read only, displayed so I would also like the due date to automatically show. I know nothing about Java and what I've used so far I've been able to copy and paste to my form. Any help would be greatly appreciated.

Dynamically populate dropdown list from user-entered values in repeatable table row

$
0
0

I am trying to take the values entered by the user in a text field in a repeatable table row (between 1 and 10 rows depending on the user's need) and dynamically populate a dropdown list that is used throughout the rest of the form.  I'm thinking I probably need code in two separate places - at the table to force a unique ID on each table row as it's created, and at the dropdown list to pull a variable number of entries into the dropdown values.  Sending the table data out to a separate data file and then calling on the outside file to populate the list would be problematic for several reasons, so I'm hoping I can force all of this on the fly within the document.  I've been unable to find a code snippet online that would work in the way I intend.

 

Any help would be much appreciated!

 

Message was edited by: cyndilynnrose

Working with Custom Properties in JavaScript

$
0
0

Hi,

 

On a form, In JavaScript, I'm trying to reference the custom properties (manually created by navigating to File > Form Properties > Info > Custom Properties).  I don't need to set the properties, just get them.  I know how to get the default properties (e.g. Title, Description, Version, etc...), and I can get/set variables that I've created (File > Form Properties > Variables), but the custom properties have stumped me.

 

The closest I've found is the FormData.extras object, which is documented as "An enclosure around one or more sets of custom properties. The content of this element may be used by custom applications" but it doesn't contain anything.

 

I feel like I'm overlooking an easy answer, but I'm stumped.  Is this even possible?

Complex SOM expressions for binding

$
0
0

Hi everyone,

 

I'm working to bind an XML structure with a lot of pointers, rather than hard relationships (the XML structure is NIEM based).  I'm trying to force this into the "Data Binding" field rather than using JavaScript.  At long last I was able to get the following to return to me the reference ID I expected by using the resolveNode() function:

 

PacketRequest.Data.GuidelineBasedActivity.ItemEntityAssociation.[Entit y.EntityPerson.ref==$.resolveNode("PacketRequest.Data.ChildSupportEnfo rcementCase.ChildSupportEnforcementCaseAugmentation.CaseParticipant.[C aseParticipantAugmentation.CaseParticipantInvolvementRoleCode==""CP""] .RoleOfPerson.ref")].AssetItem.ref

 

Now I'm trying to take it one level deeper to use that ID to match to the specific entity I need to pull a value for.  To do that I'm trying to nest resolveNode() functions.  I've assumed based on how CP worked before that I need to increase the number of quotes to do literal quotes, and I've tried a number of combinations of the following (two quotes, one quote) but none seem to work:

 

PacketRequest.Data.AssetItem.[id==$.resolveNode("PacketRequest.Data.Gu idelineBasedActivity.ItemEntityAssociation.[Entity.EntityPerson.ref==$ .resolveNode(""PacketRequest.Data.ChildSupportEnforcementCase.ChildSup portEnforcementCaseAugmentation.CaseParticipant.[CaseParticipantAugmen tation.CaseParticipantInvolvementRoleCode=="""CP"""].RoleOfPerson.ref" ")].AssetItem.ref")].AssetItemEquity.ItemValueAmount.Amount

 

Does anyone know if it is possible to embed resolveNode() functions in a SOM expression or if there is another way to accomplish what I'm trying to do without scripting?

Populating a Text Field based on Check Box(es) selection.

$
0
0

Hello Everyone,

 

I usually work with Acrobat forms and I have been recently needing more Dynamic funtioning of the forms. I need help in that I want to populate a text field based on various checked boxed and radials. In Acrobat I assigned this script to the text field that would change for example:

 

if(this.getField("ia1").value == 0 && this.getField("ia2").value == 1 && this.getField("cbx2").value == 0)

{

event.target.value = "This letter is to confirm our conversation on " + "<Please Enter Date>" + " reg..... " + this.getField("mon").value + "."; //where please enter date told the user to add the date manually.

}

else if(this.getField("ia1").value == 0 && this.getField("ia2").value == 1 && this.getField("cbx2").value == 1)

{

event.target.value = "This letter is to confirm ...

 

In LiveCyle I have created a sample form and the check and radials and the text field. When I assign the following script to the text field I am not sure which event to place it in, I also dont know how to get the field to be intereactive after the update such as to let the user enter their own date or know if the value of the radial (Months.rawValue) will input into the final text.:

 

if(Inv.rawValue == 1 && Reb.rawValue == 1 && Season.rawValue == 1) //where Inv and Reb are check boxes and Season is the radial group

{

txtFld.rawValue = "This letter is to confirm our conversation on " + "<Please Enter Date>" + " reg..... " " + Months.rawValue + " "

}

 

When I add this to one of the checkboxes using (this.rawValue .... and then the additional script it works but only once I check and uncheck the check box the script is placed in. I have tried this first in the click event and then the change event. As I am fairly new to LiveCycle I need a better understanding of each event. Although I am reading up on this I would ask if someone could provide some assistance in the matter, all is apprecaited.


Thanks in advance,

 

A A A


Mask a table column

$
0
0

Hi everyone,

 

What i am trying to do here is to mask the columns of a dynamically filled table. I want empty columns to be hidden.

I have tested alot of things but none seemed to work properly. The whole columns need to be hidden, including the header.
Any idea on how to do this?

 

Thanks alot!
Max

Problem with current date field...

$
0
0

I want to display the current date and time, but when I change the data format in the binding tab to "Date and Time" and assign a pattern that includes date and time, all I get is the current date, NOT the time. TIA!

PDF created with LiveCycle will not display

$
0
0

  All the other PDF links in the email work.  However, the document created with LiveCycle give me this error in Firefox.  I have made all the updates according to Firefox for Adobe Reader and Java.  Still receiving this.  Any suggestions???  I can see it in Explorer but not firefox or Chrome.  Not everyone that will get this particular document will use Explorer.  Unfortunately, I need a fast answer.

Error.png

How to get date to properly autofill/autocalculate

$
0
0

Please see attached, as I can't seem to get script correct.

I've review several articles and have found similiar, but I must be missing something.

 

https://sendnow.acrobat.com/?i=iYsAHlkA3MPH7xiCjUS0*Q

 

I want the first field to populate with date same as the beggining date field, which is working fine.

The other days should populate with beginning date+1, +2, +3 etc with format D-MMM.

Mailto: hyperlink opens both a new email message and a new browser window/tab

$
0
0

Hi,

 

The subject line sums it up.  I have  form with email hyperlinks, which work fine except that when you click on them they seem to open both a new message in the registered email client, AND a new window/tab in the default web browser.

 

I prefer using mailto: hyperlinks instead of some other hack to open a new email message.

 

Does anyone know of a way to get these to work without a new browser tab/window being opened?

 

 

Thanks,

Eric

Viewing all 5571 articles
Browse latest View live


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