Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Designer
Viewing all 16286 articles
Browse latest View live

add attachment after form is signed - NotAllowedError

$
0
0

Hi All!

 

We have PDF form with digital signature.

The form is developed in LiveCycle designer 8.2. The form is dynamic.

 

One very important User wants to be able to add an attachment after she signs the form :

- immediately (in the same Adobe session)

or

- sometimes later.

 

She was able to do that before Adobe Pro XI was installed on her PC (I think she had Adobe Pro 8 before).

Now after she signs the form - the standard "Add" icon in Attachments is grayed out.

 

It looks like there is a workaround to overwrite the enhanced security implemented by Adobe by using JavaScript API “importDataObject”.

 

I implemented the solution recommended by Adobe experts (see the links in the end of this post).

But it doesn't work.

I am receiving an error "NotAllowedError: Security settings prevent access to this property or method".

 

1. According to the links - API “importDataObject” can be executed only by another API “app.trustedFunction”.

2. “importDataObject” can only be executed in Privileged context.

3. Privileged context is Folder Level.

 

What I did:

 

1. Created config.js in C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Javascripts:

   var importMyAttachment = app.trustedFunction(function(oDoc, sFile){
      app.beginPriv();
      var rtn = oDoc.importDataObject(sFile);

      app.endPriv();
     });

 

2.In LiveCycle designer created custom button "Add Attachment"

     On click event created JS code.

The code is saying: call API importDataObject from privileged context in folder level:

 

var myDoc = event.target;
if(typeof(importMyAttachment) == "function"){

var sFile = "myLittleFile";
importMyAttachment(myDoc,sFile);   
}else{
console.println("Missing Attach Fucntion");
}

 

3. Opened the form in Adobe pro XI.

- signed the form.

- clicked my custom button "Add Attachment".

- received error "NotAllowedError: Security settings prevent access to this property or method."

From JS debugger  - I can clearly see that API importDataObject is called by trusted function in folder level:

folder level.jpg

Here are the links I used for the workaround:

https://acrobatusers.com/tutorials/folder_level_scripts

https://acrobatusers.com/tutorials/using_trusted_functions

http://help.adobe.com/livedocs/acrobat_sdk/9/Acrobat9_HTMLHelp/wwhelp/wwhimpl/common/html/ wwhelp.htm?context=Acrobat9_HTMLHelp&file=JS_API_AcroJS.88.323.html

http://help.adobe.com/livedocs/acrobat_sdk/9/Acrobat9_HTMLHelp/wwhelp/wwhimpl/common/html/ wwhelp.htm?context=Acrobat9_HTMLHelp&file=JS_API_AcroJS.88.323.html

 

How to Add attachment after the form is signed?

Your input is greatly appreciated.

 

Thanks,

Tatyana


Validation before Submit in workspace

$
0
0
We want to validate the fields before the forms is submitted from workspace. We have a custom validation script(function defined) which will popup message displaying the incorrect fields.

Issue:
How do we stop the form from submission if validation is done through scripts?

Which event to be used?

Is there any specific value the function should return? Currently we return true or false based on validation.

Need to add a countdown timer to a Pdf

$
0
0

Anyone know how to do this.

 

I found this file online, but I do not know how to copy it into a LiveCycle PDF and have it actually work.

 

Any ideas?

Is LiveCycle the right product?

$
0
0

Hi, I'm lost in the sea of Adobe products. My need is this: automatically generate (pre-filled) fillable pdf to be used on IOS mobiles.

Now, we can forget the "to be used on mobile IOS devices" and focus only on the first part of the sentence...

I've tried Acrobat DC only to find that it could only generate pdf interactively, that wasn't enought for me, I need batch processing.

So I was in a support chat with Adobe representative and he told me that LiveCycle Designer was the right product.

I bought it instantly, and followed a fast tutorial... now I can create static fillable pdfs, in XFA format (so there could be problem on the mobile side, but leave that away for now), based on xmls. Ok but...  how can I create the batch process that I need, using only Designer?

The basic goal could be this: I create a template static fillable pdf with xml schema data binding. I regenerate dinamically this xml from another database and use the binding to fill some pre-fill data. Then send the merged pdf to the final user to complete the form filling. I've tried to use the script   "xfa.host.importData("test.xml")" on pdf loading without success. Even the button under "File -> Distribute form... " is greyed out... in Designer, so I started to have some doubts and I've googled a little, to find out that LiveCycle ES4 is a suite of programs... Designer is only one of them... Ok, so what else do I need to arrive to my final solution? Which software part does the merge between the xml and xfa to produce my pdf in batch?

Adobe Forms? So must I buy another piece of software or ask a refund? Do you agree that with only the Designer its impossible to achieve my goal?

Thanks...

Copy Calculated Fields and Script Object from one form to another form.

$
0
0

I did this once and for the life of me i can't figure it out now.

 

I created a weekly note pad with calculated date fields and holiday fields which get populated with the holiday that falls on that date.  I incorporated my person holidays so i won't for get birthdays, anniversary's and so forth.

 

I create the form in Word using the Event Planner template which i redesigned for my use the print to .pdf. When the Word document is opened it asks for a month to start so i can select the month prior to the current month and have a 3 month calendar displayed on the top right of the form.  The top left of the form has the day, date and holiday if any.  There are seven pages to the form one for each day of the week.  Enter the date on Monday and the rest of the dates fill in automatically as well with any holidays.

 

I need to copy the date and holiday fields along with the script object from the working form to the Weekly Note Pad form.  I get an error when doing this now.

 

Here are my forms which may need to be downloaded to work.

 

Dropbox - dateholidayfields.pdfDropbox - Weekly Notepad 2016 NWM2.pdf

 

Here is a link to my October, November & December weekly notepad which somehow i copied the info to and it worked.

Dropbox - Weekly Notepad 2016 OND.pdf

 

Thanks for any input!

Form with check boxes to hide unhide subforms

$
0
0

I have a form that I am creating in LiveCycle Designer that has multiple check boxes and other fields on page 1.  Page 2 has some standard conditions.  I also have hidden sub forms on page 3 and on, that I want to make visible based on what check boxes are checked.  Is this possible?

Form - Lock fields after input but not signatures.

$
0
0

Good Afternoon,

 

I’ve been reading through the Adobe forums as well as other areas on the net, but can’t seem to find what I am looking for.

 

At present we are doing the below:

 

  1. User will open a pre-made PDF form in Adobe Acrobat 7 Standard, and input the necessary values for each field.
  2. They will then print the form to acrobat making everything on the form non-editable.
  3. Then they will send this new non-editable form to one of their supervisors, who would then review the form and insert their digital signature somewhere on the form.
  4. The supervisor will then send the form to another supervisor who also reviews the form and creates their digital signature on the form.
  5. Then the form is then sent to the manager where the same things happens. The manager will review the form and insert his digital signature somewhere in an open space on the form.

 

We want to minimize some steps here to make it easier for the users as well as make the form more organized.

 

Below is what we are trying to accomplish with this form.

 

  1. User will open pre-made PDF form in Adobe Acrobat 7 Standard, and input the necessary values for each field.
  2. The user will then push some sort of button that will lock all editable fields (EXCEPT the signature fields, these must be left editable).
  3. The user then sends the form to the supervisor, who will review the form and insert their digital signature in the blank signature box at the bottom of the page (I have already completed this step)
  4. This supervisor will then send the form to the other supervisor to be reviewed and digitally signed in the next available signature box at the bottom of the page and then it will head on to the next person to be reviewed and signed.

 

So what I am looking for is a way for the first user to lock the editable fields once they are completed filling them in, course except for the signature fields which are about 10 of them.

 

Can anyone give me some advice on how to accomplish this? Please do note that I am working with “Adobe Livecycle Designer ES2” as well as “Acrobat X Professional”. Would also be good to mention that I knew nothing of LiveCycle until about an hour ago. So I am very new on how this works. My knowledge on Acrobat Professional I would say is between average to advanced.

 

Kind Regards,

K

Today's date as default date

$
0
0

Hello,

 

I just want to set the default date of a date field as today's date, what do I need to enter in the default value field of the object menu?

 

Thanks!

 

Dave


Multiple Master Pages - How to setup next page

$
0
0

Hi All,

 

We are designing a adobe form in Life Cycle designer.

We have three master pages (say MPage1, MPage2 & Mpage3)

And we have one Body page(subform\Page) in which we have table who's data is getting displayed over 5 to 10 Pages.

Now for this boy page (Bpage1) in the "Pagigation" tab we have set content area of MPage1 and for overflow content area of MPage2.

 

What we need now is first page should be MPage1 and 2nd page should be Mpage2 - (this is working fine as well)

After that we need 3rd page as MPage3 and 4th page as MPage2 and so on.

That means after first page, we need Page 2 & 3 should be repeated one after the other.

Like - MPage1-- MPage2 -- Mpage3 -- MPage2 -- Mpage3 -- MPage2 -- Mpage3 -- MPage2 -- Mpage3

 

We believe, on the table, on some event, through Java coding we need to change "Overflow Page" setting depending on current page number.

So how to set, which page should be used as nextoverflow page.

 

Kindly suggest.

 

Regards,

Amit

how to force the form not to close / customize the messagebox at save time

$
0
0

Hello all!

I'm using AEM/designer to design a form, at the time a user clicks red cross to close the form--> "Do you want to save the form <form name>?" Click save button --> save the form --> enable validation script and pop up warning message at form presave event.

questions:

1. how do i customize the text "Do you want to save the form <form name>?"

2. if he clicks save button and the form is saved and pops up warning message that some fields are empty, he clicks "OK", how can i keep him stay on the form?

on the internet, i can only find script to force one to close the form:

event.target.closeDoc(false); // or param value = true

app.execMenuItem("Close"); 

But I cannot find one script to keep the form open. Is it possible or not?

 

Thank you in advance!

Help creating a dynamic subject line from email submitted forms

$
0
0

Hey guys,

 

Would anyone be able to help me out, I want to be able to edit the email submit button so that when you click submit it will put in a customised subject line but this needs to change with a drop down list that I have in the form as well.

 

Is this possible if it is could you let me know ?

 

Tah

 

Ps. If I haven't made clear what I'm after just let me know

Drop Down List With Multiple Email Addresses

$
0
0
I created a form which requires users to choices from a drop down list. I want to associate their choice with a specific email address and then submit the completed .pdf form to the specified email address. I have tried writing a Java Script to accomplish this selection but have failed to make the operation work. Help!! Thanks.

How to get the day of the month from date field

$
0
0

Hello - I have a date/time field (DateEffective) that the user will fill out, and I need to determine if the day of the month is before the 15th or from the 15th on. For now, I created another calculated field (Cutoff) to try to get the date value using the getDate method, but it doesn't seem to work. What am I doing wrong?

 

if (DateEffective.rawValue == null || DateEffective.rawValue.length == 0)
{
Cutoff.rawValue = "waiting";
}
else {

Cutoff.rawValue = DateEffective.getDate();

}

Is LiveCycle the right product?

$
0
0

Hi, I'm lost in the sea of Adobe products. My need is this: automatically generate (pre-filled) fillable pdf to be used on IOS mobiles.

Now, we can forget the "to be used on mobile IOS devices" and focus only on the first part of the sentence...

I've tried Acrobat DC only to find that it could only generate pdf interactively, that wasn't enought for me, I need batch processing.

So I was in a support chat with Adobe representative and he told me that LiveCycle Designer was the right product.

I bought it instantly, and followed a fast tutorial... now I can create static fillable pdfs, in XFA format (so there could be problem on the mobile side, but leave that away for now), based on xmls. Ok but...  how can I create the batch process that I need, using only Designer?

The basic goal could be this: I create a template static fillable pdf with xml schema data binding. I regenerate dinamically this xml from another database and use the binding to fill some pre-fill data. Then send the merged pdf to the final user to complete the form filling. I've tried to use the script   "xfa.host.importData("test.xml")" on pdf loading without success. Even the button under "File -> Distribute form... " is greyed out... in Designer, so I started to have some doubts and I've googled a little, to find out that LiveCycle ES4 is a suite of programs... Designer is only one of them... Ok, so what else do I need to arrive to my final solution? Which software part does the merge between the xml and xfa to produce my pdf in batch?

Adobe Forms? So must I buy another piece of software or ask a refund? Do you agree that with only the Designer its impossible to achieve my goal?

Thanks...

Reading Data from a Table using loop

$
0
0

I have a dynamic table inside the PDF form. I want to loop through the table rows and read the cell contents. I successfully get the rows count in the table. But can't read the values from the cells. I have put editable TextField (txtName) control in each cell and trying to read its value.

 

screenshot is below.

 

table_loop_error.jpg

 

 

Code I am using is:

 

 form1.Page1.Subform1.btnReadTable::click - (JavaScript, client)

var rowCount = MyTable._Row1.count;
app.alert("Row Count: " + rowCount);
var i = 0;

for(i=0 ; i<rowCount ; i++)
{    //app.alert(MyTable.Row1[i].txtName.rawValue); // NOT WORKING       app.alert(MyTable.Row1.txtName.rawValue); // WORKING, But just giving the value for the first row.
}

 

 

Please tell me how can I get the value of each name in every row by looping.

 

Thanks in advance.

 

-

Abhinav


Hiding a master page based on a condition

$
0
0

Hi All,

 

I have created a form which has data on odd pages and some terms and condition on the back pages(even) pages. I am using Adobe Livecycle Designer ES version 8.1.2

 

For this I created 4 Master pages.

FirstPage - Pagination -> Odd/Even - > Odd (front) pages

                                   Placement -> First Page (in Page set)

 

Front Page - Pagination -> Odd/Even - > Odd (front) pages

                                   Placement -> Rest of pages

 

BackPage - Pagination -> Odd/Even - > Even (Back) pages

                                   Placement -> Rest of pages

 

Dummy - Pagination -> Odd/Even - > Blank page

 

I dragged the content area of back page on the dummy page.

 

This set up works fine for printing.

 

I have additional requirement of archiving, emailing and faxing. While sending a email or fax or archiving, the data should be continuous, the back master page should be removed otherwise they show in alternate pages as blank pages even if i set the presence property to visible(print only) .


Are there any settings which can be done to remove the master pages that are not needed based on a codition.
Any help will be appreciated.

 

Regards

Neha

Javascript code for multiple if/then conditions Livecycle Designer

$
0
0

I'm trying to code a button that will check several mandatory fields and individually highlight them in red if they aren't completed. I do not want to use a submit button.

 

I can get the code to work for my first field:

if ( form1.pageonesubform.Topchunkpageone.agencyuseonlytable.Row3.typeofrequest.typeofrequestl ist.isNull)

{   

form1.pageonesubform.Topchunkpageone.agencyuseonlytable.Row3.typeofrequest.typeofrequestli st.border.fill.color.value = "255,0,0";     xfa.host.messageBox("Some fields are empty. Please scroll up and complete fields highlighted in red.");    

}

else {

form1.pageonesubform.Topchunkpageone.agencyuseonlytable.Row3.typeofrequest.typeofrequestli st.border.fill.color.value = "255,255,255"; 

}

But where do I put code for the next if/else? When I set up the exact same code with the next field name under the above if/else code, nothing at all happens -- the first action doesn't even happen. But if I make it "or" with ||, then it will only highlight one field -- the first one.

 

I need it to do this:

If typeofrequestlist is empty, turn it red, once filled, turn it white

AND

If supvname is empty, turn it red, once filled turn it white

AND

if supvclass is empty, turn it red, once filled turn it white

//and so on

then

If all fields are filled, show message box "All mandatory fields have been completed."

 

HELP.

Need JScript fix: Alert box cancel button not working!

$
0
0

Hello all,

 

My form has an option for the user to delete subforms/records as needed. Acrobat does allow for Undo- so if my user accidentally clicks "delete", they're stuck.

 

I added an alert box to ask "Are you sure...", with "yes" and "cancel" buttons.  But when I click the cancel button, it deletes anyway!

 

Here is the script I'm using:

 

if(xfa.host.messageBox("Are you sure you want to delete? This cannot be undone.","Confirmation Required !!!",2,2)==4)

{

     xfa.host.Delete.click();  

}

else

 

{

     xfa.host.cancel.Action=2;

}

and here's the form:

Dropbox - AFBS_90-Plus_110614.pdf

 

Many thanks!

Laura

Is it possible to digitally sign forms created in LiveCycle Designer when Adobe Reader is in FIPS mode?

$
0
0

Is it possible to digitally sign forms created in LiveCycle Designer when Adobe Reader is in FIPS mode?

 

So far as I can tell, all documents I create in LiveCycle Designer cannot be signed by users who have FIPS Mode enabled in Adobe Reader DC.  Is there an option that I can change to enable compatibility, or is support not yet available?

 

Amplifying information:

LiveCycle's support documentation states that "Adobe signatures support the Public Key Cryptography Standard (PKCS) #7, using the RSA MD5, RSA SHA-1 or DSA SHA-1 hash algorithm."

The Acrobat Family Security Feature User Guide documentation states that "Caution: If a signer may be using FIPS mode, do NOT specify MD5 or RIPMD160."

 

Could it be the case that Adobe Reader DC 8.1 (in FIPS Mode) is trying to sign PDFs with SHA-256, which is not supported?  (So far as I know, SHA-1 is still supported by FIPS 140-2 and I have been able to sign LiveCycle Designer-created PDFs with SHA-1 in earlier versions of Adobe Reader.)

Change the orientation of a page

$
0
0

I am in the process of creating an on-line application form for our organisation.  All the pages (11 in total) are portrait except the last which needs to be landscape.  Can you please help me and advise how can I change the orientation of the last page to landscape.

 

Thanks

Jannie

Viewing all 16286 articles
Browse latest View live


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