Expand my Community achievements bar.

SOLVED

upload pdf on URL

Avatar

Former Community Member

Hi,

How to send whole pdf to URL with js button, not just XML as Submit one.

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

     May be you can try approach.

     Place a button control on the form and change the Control Type to Submit..(attached screenshot for the settings to submit as PDF).

     Paste the below code in the preSubmit event of the control.

     Script language needs to be JavaScript.

     this.resolveNode("#event").submit.target = URL TO SUBMIT in double quotes;

Thanks

Srini

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

     May be you can try approach.

     Place a button control on the form and change the Control Type to Submit..(attached screenshot for the settings to submit as PDF).

     Paste the below code in the preSubmit event of the control.

     Script language needs to be JavaScript.

     this.resolveNode("#event").submit.target = URL TO SUBMIT in double quotes;

Thanks

Srini