Is there an easy way to detect changes in InfoPath 2007 Forms Services?
I'm looking for tips / tricks for handling field changes in InfoPath. Basically, I would like to set a dirty flag for the section. I am using InfoPath 2007 with Forms Services.
My current approach is to add rules to each field in the section to update the dirty flag, but this is too painful and messy. Is there some simple solution I am missing?
As a consequence, if anyone has any hints / tricks for switching a field between read-only and non-read-only, that would be quite helpful as well. My only solution is to duplicate fields in another section and hide / show the corresponding section based on logic. I realize I could do this with views as well, but both are ugly solutions.
a source to share
If you don't want to add a bunch of InfoPath rules; which seems like writing some form of code is probably the best bet.
The xmlchangedeventhandler is shown below.
http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.xmlchangedeventhandler.aspx
a source to share