views:

124

answers:

2

I'm looking for tips/tricks for dealing with changes on fields within an InfoPath section. Basically, I'd like to be able to set a dirty flag for a section. I'm using InfoPath 2007 with Forms Services.

Currently, my approach would be to add rules to every field within the section to update the dirty flag but that is too painful and messy. Is there some simple solution that I am missing?

As a corollary, if anyone has tip/tricks for toggling a field between read only and not read only, that would be greatly appreciated as well. My only solution there is to duplicate the fields in another section and hide/show the appropriate section based on logic. I realize that I could do this with views as well but both are ugly solutions.

+1  A: 

If you don't want to add a bunch of InfoPath rules; that it seems that writing some form code is probably your best bet.

The xmlchangedeventhandler below looks to be of some use.

http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.xmlchangedeventhandler.aspx

bryansh
Thanks for the idea. I should have mentioned that I'm trying to avoid code, though. This is using SharePoint Forms Services and I want to avoid having to publish it through Central Administration (which is required for forms with code).
Kirk Liemohn
A: 

This is going to be a mishmash of rules/hidden fields if you can't use code (even then it aint gonna be pretty!)

Jason Watts
I guess so. Hopefully the next version of InfoPath helps with this.
Kirk Liemohn

related questions