Expand my Community achievements bar.

SOLVED

How to force browser to display pdf form only whether it supports or not?

Avatar

Level 7

Hi All,

Whenever I hit below url I get an HTML 5 form and When My browser doesnt support I will get pdf form with xml data rendered into it.

http://localhost:4502/content/xfaforms/profiles/default.html?contentRoot=crx:///content/dam/formsand...

Please tell me what parameter I set to get either HTML5 or PDF based on my choice. I want to force browser to display pdf whether it supports or not.

 

Regards

1 Accepted Solution

Avatar

Correct answer by
Level 3

Instead of the html extension, you can try .pdf extension to show the pdf file. i.e. try changing the URL to

http://<server>:<port>/content/xfaforms/profiles/default.pdf?contentRoot=crx:///content/dam/formsanddocuments/FordeForm&template=ESC101NK.xdp&dataRef=crx:///content/dam/fordeform/contractData.xml

View solution in original post

2 Replies

Avatar

Correct answer by
Level 3

Instead of the html extension, you can try .pdf extension to show the pdf file. i.e. try changing the URL to

http://<server>:<port>/content/xfaforms/profiles/default.pdf?contentRoot=crx:///content/dam/formsanddocuments/FordeForm&template=ESC101NK.xdp&dataRef=crx:///content/dam/fordeform/contractData.xml