Inject javascript to Infopath form
We use Infopath 2007 + Sharepoint 2007 and need to inject some javascript to infopath form. I know that infopath form can be hosted on the aspx page using XmlFormControl. But this solution doesn't suit us =(. Is there 开发者_高级运维any workaround?
InfoPath Form Services won't let you publish an InfoPath form with JavaScript. If you really need to use JavaScript for a rich client experience, you may have luck loading your form in a XmlFormControl as you mentioned, then loading your js library on the page along side it, and binding to dom elements. You won't get any design time support this way but it may work.
Generally speaking, you need to stick to rules and managed code with IPFS.
Maybe you can write an InfoPath add-in to inject javascript codes.
InfoJet Service - InfoPath Web Forms Engine http://www.infojetsoft.com
精彩评论