Expand my Community achievements bar.

SOLVED

HTML form submit button to open email app and attach pdf

Avatar

Level 2

Hi Experts,

Functinality - I have a submit button in form which triggers email app and by attaching PDF and subject line and add content in body of email is drafted. The code for the above fuction is written in the javascript area of XDP form, by below code -

doc.mailDoc(bUI:false, cTo: toaddvar, cSubject: subvar, cmsg: msgvar);

 

The above function is working well when the submit button is used from PDF form , BUT not working in when opened the form as HTML in browser. Can you please help me in modifying the code which is supported in HTML form submit button for the same functionality.?

 

Thanks in advance. Let me know if needed more details.

Abhilash

@Deleted Account @Mayank_Gandhi 

 

1 Accepted Solution

Avatar

Correct answer by
Level 9

If you have rendered the xdp in html format and the functionality is not working then it is also the expected behavior 

The documentation lists the supported events when you render xdp in html format

View solution in original post

3 Replies

Avatar

Level 9

I think it is the correct behavior 

when you open the pdf in the browser you are opening it in the browsers pdf viewer which is not the same as adobe reader or Acrobat 

Avatar

Correct answer by
Level 9

If you have rendered the xdp in html format and the functionality is not working then it is also the expected behavior 

The documentation lists the supported events when you render xdp in html format