Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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.

share|improve this question
add comment

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:

share|improve this answer
    
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. –  Dasari Ramesh Kumar Jan 4 '13 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 –  Gennady Vanin Novosibirsk Jan 4 '13 at 11:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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