Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Submit button to send pdf to folder on server

Avatar

Level 2

Hi everyone,

I need to add a submit button to my livecycle designer form that allows the user to submit the entire pdf to a folder on a remote server. I tried putting the following code on the click event for my button:

var myURL = “http://mysite.com/test/”;

var myDoc = event.target;

myDoc.submitForm({cURL: myURL,cSubmitAs: “PDF”,cUsageRights: submitFormUsageRights.RMA });

Although when I opened up the file in Acrobat pro and clicked the button, nothing happened.
Would anyone know what I'm doing wrong?
Grateful for any advice.

0 Replies