Changed event not triggering

N

NightRaVeR

Hi

I experience a problem with Infopath concerning the changed event.

The setup is: I have a radiobutton, which allows to select whether you
live in the default country (Belgium) or abroad. When you select
Belgium, a section is displayed to enter the information. When you
have entered the zip code, it should get the corresponding city and
fill out the textbox with the city found.
Asd a testcase, I do not connect to a webservice to retrieve the city,
I just use a case statement with some testcities. However, in preview
it seems to work perfectly, when published to a sharepoint portal, it
fails and gives a generic javascript error like 'null of object
expected'

Is this because of the master-detail problem that arises when
publishing to the web? I cannot imagine, but I've tried every other
option
 
B

Ben Walters

Hey NightRaVer,
The issue you have here is that you need to have the control force Infopath
to post back to the server when the value is changed.
To do this open the properties for the radio button, the last tab on the
properties dialog should say "Browser forms"
here you can control when the postback should happen. In your instance you
want to select "Always"this will force the postback to occur.

Hope this helps

Cheers,
Ben Walters
 

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