Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Mrsunilg-3z0lTX
Level 7
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
varundua
Correct answer by
Level 3
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
varundua
Correct answer by
Level 3
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