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

About the subform sets samples.

$
0
0

I was going through the samples, and I noticed that I couldn't find the source of the data in the samples. The files used are DataA.xml and DataB.xml, however, there is no Data Connection defined anywhere, or at least I can't find it. However, if I delete the xml files, an error shows, so it's obviously using them, somehow.

 

Also there is no info in the Data View tab, and when I create a new Data Connection, there is always something there.

 

Thanks!.


Populate a PDF done with Adobe Livecycle Designer

$
0
0

I have a pdf from an institution and I have been asked to populate it directly with data saved in an excel file. I have found that the pdf was done with adobe livecycle designer and with that program I can see the name of the fields in the form.

The pdf can be found in:

https://sedeelectronica.bde.es/f/websede/content/SPA/Form_TRA_clientes .pdf


I have thought to use a VB macro in the excel file to populate the pdf. I have been searching on Internet but by now, I am only able to read the values of the fields, but I can't change them. I know that the code below doesn't work with XFA Forms, but I have read a lot of documentation and I can't find anything else.

Here is the code:

Set gApp = CreateObject("AcroExch.app")
Set avDoc = CreateObject("AcroExch.AVDoc")
If avDoc.Open(FileNm, "") Then
   Set pdDoc = avDoc.GetPDDoc()
   Set jso = pdDoc.GetJSObject()
jso.Getfield("FrmSolicitudTransferenciaEuros[0].FormContent[0].ordena nte[0].datosOrdenanteExterno[0].ordenante[0]").Value  = "new value"

    pdDoc.Save 1, FileNm
    pdDoc.Close
End If

avDoc.Close (True)

Can anybody write an example explaining how to do that with XFA?

Thank you in advance.

Embed multi page image file

$
0
0

Is it possible to embed a 2 page imge file into a Livecycle Form or would you have to split the image file into 2 pages and embed each one?

How can I change the caption of a text field using data?

$
0
0

Hi, I've read that this is possible to do but when you have an xsd file, I'm using a preview xml data file, so there is no way to link them together, any ideas?.

 

Thanks!.

Overflowing table row content not moving into the next page

$
0
0

Hi All,

 

I am facing issue with overflowing table row content. Following is the screenshot of the last page of the form.

 

overflowing table row issue.JPG

 

This is how the form has structured.

In the line items table, the column is for the Item Description. contains several fields (8 in number). One of them is batch information.

 

The Batch Information is a text field for which multiple lines have been enabled.

The Textfield has been made to expand in height.

 

All the 8 textfields in the "Description" column are wrapped in a flowed subform with page breaks enabled.

The Table Body Row is also made to be page break enabled. The Batch Information Text field can contain hundreds of lines, in which case the page should break

and content should flow into the next page. At the end of each page there is a footer element which is a part of the master page.

 

In the image inserted in the discussion question, you can see the expanded subform for "Description" column has overlapped into the Master Page content (Footer Element).

Surprisingly it has also gone beyond the area provided by content area.

 

The line Item table at runtime is getting populated with 2 two rows. The first line item gets populated properly with page breaks and content overflow. The first line item contains around 200 lines in batch information field.

While rendering the second line item, the above mentioned issue happens.

 

Can you please help me out to find the root cause of this issue.

 

Thanks,

Rohit

hiding specific cells within of every row in a repeating row table on the exit button click

$
0
0

I have been struggling with how to approach hiding editing fields within specific cells of every row in the  table on the exit button click.

Dows the row have to be resolved? i any help is appreciated. 

 

 

//  Main.Links2.Tbl.Row1.Edit = this is the Hierachy

//  Main.Links2.Tbl.Row1.DEdit= this is the Hierachy

 

 

form1.Main.b.Exit::click - (JavaScript, client)

{

// Edit Buttons sf (b)

 

form1.Main.b.NoteOpen.presence = "visible";

form1.Main.b.Exit.presence = "invisible";

 

//  Protecting the field so it isn't included in tabbing.

form1.Main.Links2.Tbl.access = "protected";

form1.Main.Links2.Tbl.Row1.Edit.presence = "invisible";                 //////////////////////   I want this field in every row invisible

form1.Main.Links2.Tbl.Row1.DEdit.presence = "invisible";              /////////////////////   I want this field in every row invisible

}

//xfa.host.setFocus("form1.Main.Links.Tbl.Title.Cell1");

Multipurpose button

$
0
0

I have been struggling for a few days now on a submit button that I need to do many things.

I've read so many forums on this, but still can't get it quite right.

 

I need this button to email a pdf with the subject line that says District ## <---being a response from the form.

I need it to be electronically signed

 

I have tried.....

 

1. I made a submit button that I can click and it will sign and mailto URL, but can't figure out how to get the subject to be dynamic.

 

2. I have a regular button with a Javascript click code as...

var subject = "District " + district.rawValue;

var myDoc = event.target;
try{  myDoc.mailDoc({
        bUI
:false,
        cTo
:'receiver@domain.com',// Replace with actual receiver mail address.
        cSubject
: subject,
        cSubmitAs
:"PDF"
   
});
}catch(e){
   
// exception handling...
}

and then had it call another Submit button that is invisible that actually does the Submit / Sign etc.

    

     The problem with this one is it's trying to submit two times.

 

 

Does anyone have any magic they can share with me?

 

I have tried using the HTTP buttons as well to no avail.

 

Gretchen

how to set the max height of an image field

$
0
0

I have a repeatable image field in my form where users can add images, and I have created two buttons below the image field that allow the user to resize it. The script on the buttons is:

 

ImageField1.h = (xfa.layout.h(ImageField1, "points")*1.1 + "points").toString();

ImageField1.hAlign = "center";

Size_buttons.hAlign = "center";

 

&

 

ImageField1.h = (xfa.layout.h(ImageField1, "points")/1.1 + "points").toString();

ImageField1.hAlign = "center";

Size_buttons.hAlign = "center";

 

 

 

My problem is that I want to specify a maximum height that the image can be so that it does not flow off of the page (this is a problem because the buttons for resizing the image are beneath it and will be inaccessible if the user makes the images too large). I have tried to place the following script in the image field, but it does not help.

this.resolveNode("ImageField1").maxH = "8.5in";

 

Any suggestions?


How to NOT send some form data when form is submitted

$
0
0

Hi,

 

I created a PDF form with some radiobuttons in group and checkboxes. When I get the form data values, like using Email Submission Button to send form data in XML or using Merge data files into spreadsheet, I will see the data values for those radiobuttons and checkboxes.

 

What I want here is to get only the data values for some controls like radiobuttons, but not other controls like checkboxes, in the XML or Excel spreadsheet after submitting the form. I just know how to hide the controls in the form, but I do need the checkboxes visible and active on the form.

 

Is there a way to hide or not to send some form data when form data is submitted?

 

Thanks

Sam

subform presence hidden until event triggers

$
0
0

On my main form I have a field users must select from a droplist.  Depending on what they select I have different subforms with questions that become present.  The main form triggers the event from a "On Exit" so my problem comes into play once the user has completed and saved this form and they reopen it the completed subform is not visible.  I understand its because no "exit" took place upon opening the saved form, but how should I handle?

Dynamic Submit Button- Required Fields

$
0
0

I needed a dynamic submit button that would cc a field from the form.  I found the following script and it works great, but it doesn't give an error message if someone didn't fill in a required field like a regular submit button would. Is it possible to use the script below but to check for required fields?

 

// This is the form return e-mail. Its hardcoded

// so that the form is always returned to the same address

// Change address on your form

var cToAddr = "909@gideons.org";

// First, get the client CC e-mail address

var cCCAddr = RegionalDirector;

// Set the subject and body text for the e-mail message

var cSubLine = "909 Camp Visitation Report-" + xfa.resolveNode("#subform[0].#subform[7].Country"); var cBody = "Thank you for submitting your 909 report.\n" + "Save a copy for your records";

// Send the form data as an FDF attachment on an e-mail

event.target.mailDoc({

          bUI: true,

          cTo: cToAddr,

          cCc: cCCAddr,

          cSubject: cSubLine,

          cMsg: cBody

});

Border pattern changes without consent

$
0
0

After applying a border with dashes on a text box, then choosing to remove 1 of the 4 sides using the 'editing individually' option, deselecting from 'dashes' to 'none' causes the other 3 border patterns to solid.   

Resources for from design - best practices for layout?

$
0
0

Hi,

 

I have made a number of forms fo the past few years.  I feel like they look dated and are somewhat stale...   I have found a few resources out there on Javascript best practices and more mechanical focused articles, but nothing really specific design as it relates to usability and "feel".  I realized some of this is subjective and varies depending on the form's purpose, but I am just looking for some new ideas.

 

  • Does anyone have a resource or listing of froms they think are outstanidng from a design perspective?
  • Is anyone willing to share forms they think are outstanding? Just that baisics like information collection?
  • How much color and line type objects become to much?
  • What are some design elements used in "web 2.0" (whatver that really means) that we sould be using in our forms.  tempered with what can be done.

 

I am looking for this to be an open disucssion and am curious to hear what works for others.  I hope others will find this interesting and helpful.

 

Cheers,

Tom

Required fields when not submitting form

$
0
0

Hi there,

 

I have a form that has several fields that management would like set to required. I have set them up that way but from what I've read so far, required fields are only "required" when there is a submit button on the form.

 

Is there any way to make required fields prevent the user from saving the form if they are blank? Some sort of validation script?

 

The business lines current process (which we currently can not change) is to fill out the form, print it out, then scan it into an imagining system , etc etc etc.

 

What we can to is skip the print step and save the PDF directly to the imaging system. I need to find out how to make those fields actually required without submitting the form. Is there any way to do this?

Automatically Save

$
0
0

I’m new to JavaScript and to LiveCycle ES2 and I am having some trouble with a form I designed. It’s a little crude, but for the most part it works. It is an internal form for staff only and once completed, I need to save it in a shared folder without changing the name. If I used the SaveAs function that pops up the window and gives an option of where to save, it is impractical and would mess up the invoice number incrementing if saved in the wrong place. I need to have it automatically save to a specific location and file name when the button to email the form is completed. Can this be done with JavaScript? (I'm new at this so not too technical, please - I confuse easily)


Repeat data from one growable table into a new one

$
0
0

Hi there,

 

I've successfully managed to create a table in LC designer4 which grows - ie. it's a four column table with a header row followed by one row where I can add information into three table cells. If I need to have another row I click the add row button (placed within the header row) and a new one appears. There's also a remove button which can sytematically removed a row. I'll call this my parent table.

 

So far so good.

 

Maybe it's better to explain exactly what I'm doing here...

 

My parent table is a kind of to-do list Call it Table X. Each column is as such: 1. what needs to be done 2. who will do it 3. when will it be done

it's growable, so if there are more than one action that needs to be performed it will add extra rows.

 

I also want to create a new table which is an update on the to-do list Call it table Y:

 

column A. what needed to be done (this data is pulled directly from column 1 on the to-do list)  column B: did it happen? column C: if not, why not - columns B and C are new and are not pulling data from the to do list.

 

The problem is two fold: How do I repeat the data from column 1 (bearing in mind that I can't use global data binding as column 1 can have multiple different entries) and if I can get beyond that first hurdle, how do I make make table Y automaticall expand to the same amount of rows as table X?

 

I should mention that I'm a designer so my programming expertise is severely limited. I've managed to create the first table by looking at tutorials rather than knowing it myself. As far as I'm aware the first table is done in javascript.

 

Any help would be greatly appreciated!

Centre textfields within a flowed subform?

$
0
0

Hi, Part of the LCD document I'm working on includes a code number, which comprises short runs of characters separated by slashes. The characters will be entered by the user in Textfields and the slashes are Text boxes.

 

I've set up a flowed subform (Western text) containing a row of Text boxes and Textfields. Each Textfield is limited to  5 characters and set to expand width if needed. At present the Textfields are ranged left in the subform, as usual with Western text flow direction; I'd like them to be centred in the subform, and to re-centre when the textfields expand.

 

Can anyone help me achieve this?

 

PS. Still on LCD ES8.2, unfortunately!

How to select all text fields?.

$
0
0

Hi, I got a form that consists of 3 pages and several docens of text fields, let say I want to apply a change of font, or make them read only, or any other property, how can I do this?, I've tried using Select all-> fields but nothing is selected, only the master page, for some reason.

 

I've found this explanation of how select all works:

 

Select All > Select All

 

Selects all top-level objects, groups, and subforms in the active Layout Editor tab. It also selects the contents of the Script Editor.

 

 

However, I'm still unsure about where should I position myself to select everything, tried different approachs, noone worked so far.

 

Thanks!.

Adobe LiveCycle Designer - Counter question

$
0
0

I have created a form. I have a repeating subform. I have checkboxes in this subform which I would like them to calculate at the bottom (in a numerical box I call "value") once I have checked the box. On the first line for example, checkbox 4 will calculate to 4. Once I go to the next line, and check checkbox 3, I would like the value in "value" to decrease by .5. And if I go the the 3rd line and place a check in checkbox 4, the value should increase by .5. Can someone help me on how to do this?

 

 

 

The "results for integrity" is where the results of the calculation should be displayed. The checkboxes below "remove behavioral anchors" are what's being used to calculate. For example, if you check the first checkbox on the 1st line, a 4 is to be displayed. The points go down by 1 as you move to the right (3rd checkbox a 3 is displayed and so forth). However, like I stated if you place a checkmark in the first line, first checkbox and the 4 is displayed THEN you go to the 2nd line and place a checkmark in the 2nd checkbox, the "results for integrity" value should reflect a decrease by .5 in which it should display 3.5. I hope this makes since. Please help, I know nothing about programming language, I did my best with the action builder.

Javascript does not save on reader form

$
0
0

Okay I have another problem for my great forum helpers.

I have a form that I have created in livecycle version 9 (I really don't like what adobe did to X and up) that has java script in it, so when you select certain radio dials and drop downs, they popluate different items on the form or add different verbiage. I have also exented the form in adobe reader.  If a user fills out the form and then saves it, I am assuming in reader X or less, the information that populated into the form with the java script disappears and the drop downs don't look right.  Now if they select the radio dials again everything works.  but they have to reselect.  So i read the following tutorial http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript and though okay it is because they need to have version XI in order for the java to save correctly.  But when I open the doc in reader XI it tells me I cannot save a filled out form? 

Now I am lost.  Let me know what I can do so that the users can save the form and not have to reselect the information.

Thanks!

jodi

Viewing all 5571 articles
Browse latest View live


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