How to retreive a value from a Pop up

F

flat file issue

Hi
I am right now working on InFopath 2007 and there is a requirement where by
there is a button on InfoPath form and clicking on which a window will open
and the user enter some text and that text i want to send it to a particular
text box on an InfoPath form.Can u let me know how its possible.ie how to put
javacsript code in InfoPath.
The infopath form is an web enabled form
 
M

[MSFT] AlexWein

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top