InfoPath Form Services will not allow you to publish an InfoPath form with JavaScript. If you really need to use JavaScript to work with a rich client, you may be lucky to upload your form to XmlFormControl, as you mentioned, and then load your js library on the page next to it and bind to dom elements. You wonβt get that kind of development-time support, but it might work.
In general, you need to adhere to the rules and managed code using IPFS.
pnewhook
source share