There is no way to make this happen directly: browser-enabled form templates
do not support custom JavaScript extensibility, nor do they support a "open a
modal question" model.
What you can do, if this kind of functionality is absolutely necessary:
- embed your form into a custom ASPX page using an XmlFormView control
- create a button within your form that would perform notifyHost()
- in the ASPX page, write code to open a popup, get the value from the
popup, and then populate the DOM of the InfoPath form that you embedded with
the value that the user typed in.
Good luck!
> Hi
> I am right now working on InFopath 2007 and there is a requirement where by
[quoted text clipped - 3 lines]
> javacsript code in InfoPath.
> The infopath form is an web enabled form