Changed Event is not triggering in Browser-Enabled Form - InfoPath Dev
in

InfoPath Dev

Changed Event is not triggering in Browser-Enabled Form

Last post 01-16-2008 03:10 PM by keeter. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-05-2007 06:04 PM

    Changed Event is not triggering in Browser-Enabled Form

    Does anyone have any idea why my changed event is not triggering?

    I have a drop-down list box and and programming on the changed event.  I am able to get my code to run on a button click event, but not on a changed event.

    My form is strictly browser based, I can get the changed event to trigger when I run the form on a computer with the thick client, but not when I try it on a browser.

    Any help would be appreciated!

    Thanks

  • 12-06-2007 08:23 AM In reply to

    Re: Changed Event is not triggering in Browser-Enabled Form

    I think I know why. When your form is running in the browser, your code (aka business logic) gets executed on the server-side when data gets sent to the server (this is also known as a postback).

    By default, Forms Server figures out by itself when to do a postback. However, this is not the case for changed events.

    To verify my claim, make a change to your dropdown then click the button. Both pieces of code will end up running.

    In order to fix this behaviour, bring up the dropdown properties, select the "Browser forms" tab and change the postback settings to "Always" instead of "Only when necessary".

    Good luck!

     

    David Airapetyan / Software Services Architect
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 12-06-2007 08:45 AM In reply to

    Re: Changed Event is not triggering in Browser-Enabled Form

    David,

    You got it man, worked like a charm!! I appreciate the feedback, take it easy!!

  • 01-16-2008 03:10 PM In reply to

    Re: Changed Event is not triggering in Browser-Enabled Form

    Thank you thank you thank you.  This post prevented me from going literally insane.

Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.