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

How to change the script event?!?

$
0
0

Here I have a small form with two different parts...

 

The first part is a table containing many checkboxes to be able to show whatever form you want to fill up..

All of the checkboxes create a form into a table which each row represents the form to fill-up.

 

When you click 1 checkbox, it adds a row to the table with some values needed for the form..

In that form there is a chance to have 2 or 3 radiobuttons, depending on the checkedbox which each do something different..

 

the 1st one hides a new table to fill up information (under the radiobuttons),

the 2nd one shows up the new table with some values to show instructions into labels...

the 3rd one shows up the new table with some other values to show different instructions into labels.. (This radiobutton is only in half of the forms, so it is hidden)

those labels must be different for each checkbox chosen

 

instead of making a huge script in my radiobutton change event, and writing all the different possibilites

i'd rather create the script depending on the checkedbox the user have chosen...

 

Right now I'm using something like : this.resolveNode("...radiobuttonList").event__change.script.value = "--_ Write all the new code here_--";

 

After this line is written and everything is working... I show up a messageBox to see the result which is all correct..

But when I'm clicking on the radiobuttons nothing is working at all...

the only code working is the initial code written in the event

 

Anyone have an idea if I'm missing something?!?

Thanks!


Locking/Protecting/Flattening? XFA form

$
0
0

Hi there!
I'm working on a dynamic form (.pdf) and i need to somehow lock all fields (really lock all fields). I already managed to change all fields .access property to either readOnly/Protected. The problem is that if someone opens a form in Acrobat it is still possible to use menu item "clear form" and booom all the data is gone. I also know it would probably be possible to unlock all fields again using js console in Acrobat (while this is rather rare case and i don't care). I want to prevent the menu item "Clear form". Is there any way I can stop this feature and offer clearing form only in certain form state (and only using a button within a form which i will hide/disable in the final state using script?)

 

 

My second questions is related to flattening - is it possible to flatten the form with javascript if a client use Reader and not Acrobat?

Any other solution that could prevent changes to document would be helpful.
Many thanks for your help,
Regards,

Bartosz

How i can chage the date formatt using java script?

$
0
0

Hi All,

 

I have a data field. In Object -> Valid patterns I changed the format as MM/DD/YYYY.

 

and i am writing the java script code on exit event of date field

 

 

var

 

reGoodDate =/^(?:(0[1-9]|1[012])[\/.](0[1-9]|[12][0-9]|3[01])[\/.](19|20)[0-9]{2})$/

;

 

if (reGoodDate.test(dt))

{

xfa.host.messageBox("Correct format")

}

else

{

xfa.host.messageBox("Incorrect Format");

}

 

 

but though i am giving the correct date formatt it is giving  as error message

Drop-Down List Local Unbound Data Source

$
0
0

I am very new to LiveCycle, and I am working to create my first form.

 

Long Story:

The form will be in PDF format, for offline use by employees completing the form. The form uses JavaScript asthe default code language. I have a repeating subform containing three (3) fields, all of which are Drop-Down Lists. The first is a 'plain text' description of an item code, the second is the item code itself, and the third has information about the item. I have an access database containing the information from which I exported to XML for deployment to the employee computers so that it can be updated as the lists change. The selection from either the first or second column should complete the others based on the information in the XML file. On the Data View palette I did the following:

     New Data Connection

     Named it 'Codes'

     Selected Sample XML Data

     Selected the File Location for the XML file

     Clicked finish

The data connection shows up in the palette as expected, but in the Hierarchy it changes my form name above master to the data connection, and breaks the code references of the form. I am not binding my form back to a database for data storage, but do intend to allow the users to save the completed form locally.

 

Short Story (or summary):

1.) How do I set Drop-Down Lists to reference a datasource without changing the existing data structure of the form or other fields?

2.) How do I set one box to update another based on this selection?

 

I have read many posts about this topic, but none of which seemed to me to address the question at hand. If I missed the one that does, I apologize and would appreciate being pointed in that direction.

PROBLEM: Text in numeric field

$
0
0

Hi =)

 

..I'm having a problem with some (not all) numeric fields in a form.

 

In the troubled ones I can type letters in them. When I exit the field it's displayed an error message and the field is cleared.

How can I make the field accept only numeric characters when typing?

 

I just don't understand what I changed to make this happen..

 

If someone has a clue, please tell me something.

Thank you =)

Multi-line entries in drop-down

$
0
0

Hi - I have a drop-down with a very long list, displaying in a fixed field area. Some of the entries are very long, and since the drop-down only allows one line, the rest of the entry is obscured. Is there any way to get the drop-down to display multi-line? Or at least to commit the selection to the fixed filed area as multi-line?

How to verify a pdf is signed?

$
0
0

Hello =)

 

I'm working with LiveCycle ES4 designing a form and I want my form to be filled by Adobe Reader users.

 

In this form, I have a signature field which I want to verify before the user submits the document.

 

I'm using this code in the click event of the button:

 

    

     var signature = event.target.getField("Form.subForm.signature");

 

     var signatureState = signature.signatureValidate();

 

     if (signatureState == 0){

         

          xfa.host.messageBox("Please sign the document.");

 

          }

 

     else if (signatureState == 1 || signatureState == 2){

         

          xfa.host.messageBox("Please use a valid signature.");

 

          }

 

     else if (signatureState >= 3){

         

          event.target.submitForm({cUrl:"mailto:xxxxxxxx@xxxx.xxx", cSubmitAs:"PDF"});

         

          xfa.host.messageBox("Form submited.");

         

          }

 

 

I've extended the features of this form in Reader using Acrobat Pro Extended.

 

The problem is..this line:

 

     var signature = event.target.getField("Form.subForm.signature");

 

.. isn't working the way it's supposed to. When I press the button in the signed, or unsigned, document, this variable is null.

 

Can PLEASE anyone explain me why?

Save dynamic XML form before submitting

$
0
0

Is it possible to have a user partially fill out a form save it and then come back to it and add more data before submtting.  I will be using the Submit As XML Data option.


Display Excel value in interactive form

$
0
0

Hello,

 

I have created an interactive form. Now the business owners want to display the remaining balance of capital projects that are maintained in an Excel spreadsheet into a field on the form. It is for view only on the form.

 

I'm not sure how to do this and would appreciate help.

 

Thanks,

MDawn

Sending submission receipt for multiple e-mails?

$
0
0

Hi

 

I have created this form that requires a user to fill out their information and submit it.

 

Right now, the submit button only allows me to send the email to specific e-mail address.

 

Is there a way to send the user (filling out the form) a receipt email that they have completed the form as well? (similar to the one used in FormCentral) The form has a section where they fill out their e-mail.. Is there a code where I can use to send them an e-mail based on their response?

 

Thanks!

Multiple checked boxes fill in common text field

$
0
0

I am attempting to create a form that has various criteria that are checked off (check boxes) and need to populate a common text field within the same form. Presently with action items I am able to design the form so that when only one item is checked it shows up on in the text field at a time not multiples  Any suggestions would help.

 

Thank you

Custom Color Swatches/Palettes

$
0
0

Within LiveCycle Designer ES2, is there a way to save and later load custom color swatches and palettes the way you can in Photoshop?

 

This capability would help to ensure that we not only conform to our branding guidelines, but it would also save a lot of time. As it stands, I have to enter RGB values every time I fire up LiveCycle. They remain for the duration of my session, but if I close LiveCycle, all is lost. It's somewhat annoying...

Pass a 'for' variable to reference dynamic binding names

$
0
0

I just started learning FormCalc to help an enduser and came up stuck.

 

Here's the general form:

 

Multiple checkboxes,

 

(name / value when checked)

box1 / 1

box2 / 2

box3 / 3

 

 

A numeric field below these 3 boxes needs to calculate the values of those boxes that are checked, then divide by the number of checked boxes

So, if all three boxes are checked, the numeric field would calculate (1 +2 +3) / 3

 

There are other checkboxes on the form that are not included in this calculation.

 

I can do multiple if statements :

 

var total = 0;

if (box1>0) then

  total=total+1;

endif

if (box2>0) then

  total=total+1;

endif

if (box3>0) then

  total=total+1;

endif

 

if (Eval(total)>0) then

  (box1 + box2 + box3) / Eval(total)

endif

 

 

I'd like to simplify it with a for statement :

 

var total = 0;

for a=1 upto 3 do

  if (box[a]>0) then

    total=total+1;

  endif

endfor

 

if (Eval(total)>0) then

  (box1 + box2 + box3) / Eval(total)

endif

 

But I end up with an error "accessor 'box[1]' is unknown".  Which makes sense.  The statement is passing the variable, but including the brackets.  What am I missing?

 

TIA

Is it possible to add files to a PDF form submission?

$
0
0

Hi there,

Someone asked me to add an attachment field to a PDF dynamic form. Based on previous research we figured out that will not be possible: our users don't have Acrobat - just Reader - and we won't purchase Reader Extensions. How about using a form field to help the user send the attachments that a are required with that give form? For instance:

- User would fill in the form and when asked for attachments he/she would browse for the file.

- The form would save the file name as text on the form (like the answer for a text field)

- The PDF form would memorize the location of the file(s)

- When the user hits "Submit" the PDF form would gather the files listed for attachment and add them as attachments - in additon to itself - to the email created by the submission button.

 

That way the attachments are not saved as part of the PDF form, but the PDF form is automating the process of adding them to the submission email.

 

Is that doable with LiveCycle Designer? Any tips on how to go about coding/building those actions?

 

Thanks in advance,

AV

Page Breaking

$
0
0

How can i get a table to break to another page. I have set the table up to add rows but when adding the rows it will not break the page. On my pagination tab it is all grey and i cannot select anything. I know this can be do i just have not been able to do it.


Copy Text Across subform Instance

$
0
0

Everyone,

 

     I wil try and explain my issue to the best of my ability. I have a Subform (NonINDoorSF) which has a Fied called (form1.MemCSI.NonINDoorSF.Header.TextField20[1]) which I want it to copy that text to another fild in a Subform of that Sub Form called (form1.MemCSI.NonINDoorSF.Header.NonINSiteDoorSF.Header.Itemcode) whcih I was able to complete with a corm cal command of ;

 

 

form1.MemCSI.NonINDoorSF.Header.NonINSiteDoorSF.Header.Itemcode

=form1.MemCSI.NonINDoorSF.Header.TextField20[1];

 

Which that works fine for the first Instance of the subed subform but not the additional ones that apear based of the variable Drop down I have. I Tried to use the global binding but it will not work because I have a Add and Delete subform button the the Parent NonINSiteDoorSF. Each new instance of the Main Subform to be treated as its own new Parent.

 

Example

 

I fill out the Non invetory Subform fill in my Item code of "Milk" and then when I choose 3 sites I have it will auto fill those 3 sites with the item code of milk. Then when I click Add new Item button and we non inventory subform apears and now when I but in "20oz water" and choose 2 sites it fills those subsequent subforms. So when its all set and done I have 2 seprate item codes and the item code corrisponing site information. Please help I am very new to this and script writing and I have been banging my head on this one. I would up load the form but I cant figure out how to on the forum.

 

Dropdown's Selection to Affect/innactivate Other Fields in Adobe LiveCycle

$
0
0

Hi. I have a table where each line is an entry. The first field of the line is a dropdown selection. I would need this to work where if I select nothing, the rest of the fields on the line are innactive, or read only, or when I select some options from the dropdown some fields become active. Also there are more dropdown fields on the line. They should only allow to be selected certain options from the list depending on the selection of the 1st field.

There are also 2 numeric fields who do some calculations, both do the same thing, however, for example, selection A in the 1st field involves tracking total TimeTotal1 in NumericField1 and selection B in the 1st field involves tracking total NumericField2. In other words, when selecting A, the calculation will be dispayed in NumericField1 while NumericField2 is not displaying anything, and if selecting B, the calculation will be dispayed in NumericField2 while NumericField1 is not displaying anything.

 

Any help would be great. I am not good at all with any Javascript coding... Thank you!

 

Multiple list box selections When clicked populate text box with comma between each value

$
0
0

I have a list box with multiple names . when I Select multiple names I only see one in the text box. Is there a setting to have multiple names concatenate in one line, with a comma between them or does it have to be coded in java?

 

I am using Adobe lifecycle ES4

 

Any help would be greatly appreciated I can't seem to find a solution on the web

 

Thank you Stephen

Change values

$
0
0

Hello,

 

Is it possible to change the following value in Livecycle:

screenshot.jpg

Any help would be  appreciated I can't find a solution on the web.

 

Thanks

multiple check boxes showing/hiding same fields

$
0
0

Hi

I am using Adobe LIvecycle designer ES2.  I have about 20 checkboxs that need to show and hide the same fields. I can get it to show and hide the fields if the checkboxes are chosen. The problem lies when you unselect a check box as this will hide the fields however if the initial check box is not unchecked I want this information to stay there.  How do I script to do this

Viewing all 5571 articles
Browse latest View live


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