How can I have a Popup window in Browser enabled Form

P

Paul D. Fox

I am creating a Browser Enabled InfoPath form and need to launch a Pop up
alert in my Try Catch Event. Does anyone have sample code?

Paul
 
D

Deniz Yalman

There is no way to add a popup alert in browser-enabled forms. Because form
services doesn't allow to use javascript in the form.

A bad way is that using a custom asp.net page which hosts your infopath form
in a xmlformview control. In this way you can embed the javascript code to
the aspx page and you can call from form events. But i think it's good.

You can use infopath controls and rules to hide/show info messages.
 
D

Deniz Yalman

But i think it's good. = it's NOT good. =)

Deniz Yalman said:
There is no way to add a popup alert in browser-enabled forms. Because form
services doesn't allow to use javascript in the form.

A bad way is that using a custom asp.net page which hosts your infopath form
in a xmlformview control. In this way you can embed the javascript code to
the aspx page and you can call from form events. But i think it's good.

You can use infopath controls and rules to hide/show info messages.
 
S

Swathi (GGK Tech)

Hi,
Use an expression box which hides if blank, and shows when text is placed
into it. Then when you want to display a message, you populate that field,
and the expression box displays. Not the best choice in many cases, but it
works.
 

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