Include external files in PowerForm

18/03/2015 07:53

There are few places where to include external files in the form. Usually, we keep files in BPC PowerForms Binaries, but it's up to you where you upload (deploy) them.

For example, we have following files in BPC PowerForms Binaries

 

GlobalStyle.css

GlobalScripts.js

IdentityTransform.xslt

 

and we want to use them in more forms

 

In OPTIONS/Scripts/Includes insert .css and .js files references

<link rel="stylesheet" type="text/css" href="https://yoursitecollection/sites/powerforms5/BPC%20PowerForms%20Binaries/GlobalStyle.css"/>
<script src="https://yoursitecollection/sites/powerforms5/BPC%20PowerForms%20Binaries/GlobalScripts.js" type="text/javascript"></script>

 

XSLT is to modify print view and has to be inserted in OPTIONS/Printing/XSLT file url

https://yoursitecollection/sites/powerforms5/BPC%20PowerForms%20Binaries/IdentityTransform.xslt