Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 424
Andrei Schneider Avatar asked Sep 28 '10 15:09

Andrei Schneider


People also ask

Is InfoPath being retired?

In SharePoint on-premise, InfoPath Services will remain supported until 2026.

How do I add fields to InfoPath form?

In the Data source task pane, right-click the field to which you want to add a field, and then click Add on the shortcut menu. In the Name box in the Add Field or Group dialog box, type a name for the new field.

What is InfoPath Filler?

Synopsis InfoPath Forms Services is a server technology that makes it possible for people to fill out forms in a Web browser. By managing forms in a central location, you can streamline business processes and improve relations with customers, partners, and suppliers.

What is the replacement for InfoPath forms?

KWizCom Forms is one InfoPath alternative that consumers should consider. It is a SharePoint tool that converts your old SharePoint forms into rich, dynamic web forms.


1 Answers

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.

like image 83
pnewhook Avatar answered Oct 26 '22 23:10

pnewhook