I need to open a popup window to display help messages (Large text) related to fields in the infopath form.

I have developed a application page to display the popup messages on click event of a hyperlink, but I don't have an option to resize the window.

Is there a way to call the javascript from the Infopath forms?

Thanks in advance.

Regards, Ramesh.

1 Answer 1


It is possible to use the XmlFormView control to host a browser-enabled form template in a webpart of a custom ASPX page and indirectly execute JScript code from the form template.

In an event handler of the Infopath XSN form template, use the NotifyHost method of the XmlForm class.
In the ASPX webpage, hook up the NotifyHost event of the XmlFormView control to an event handler.
Register and execute JScript code from within the event handler in the ASPX page.

For more details check 5-part MSDN blog:

  • Thanks for your reply. I did check that solution, it requires another aspx page to host the inforpath form. If it is single infopath form we can host in the aspx but I need to store all the forms in the Form Library and users can edit the individual forms. Commented Jan 4, 2013 at 6:36
  • I believe I have answered your question. If you have another one, please post is as a separate question. If it is not single Infopath form, they still can be hosted as multiple Infopath Web Parts in ASPX Web Part page or as content types into the form library. The same is valid for a single Infopath form. I do not see any difference, though it is completely different question which is BTW is not even formulated Commented Jan 4, 2013 at 11:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.