-
I'd go with sections since view switching is having a fit - actually, I'd probably test the 2 view switches in the browser first (with both in code) just to see if the form behaves differently in the browser. :)
-
Yeah that does make sense. I'm doing something like that for some of my fields within the form. So I'll see if I can get that to work.
The rule didn't seem to work. For whatever reason it didn't seem to switch the view until after my code ran and I'd still get an error. It was rather ...
-
Ugh, I forgot about that.... Well - let's see. Rules run before code. Maybe your button could have a rule that switches views and your code could switch back? Don't know if that would work tho... Another option would be to put the main form stuff in a section, and a message in another section (on the same view) and have a helper field for ...
-
Ya, anything other than closing the window will trigger it to ask for a save.
-
So I got the Form to switch to my update view when the code begins. And at the end I check to see if I'm still on that form and attempt to switch back. I got a com error. I looked it up and it says I can't switch views multiple times within code supposedly. Which seems like a very odd limitation. Below is my code to switch ...
-
Yes it is currently a web form and yes I am submitting this off of a button. My button calls other procedures though. I read about switching views before but am unsure how to do that since this is my first InfoPath form. But I'll start looking into that more seriously now.
-
Hilary,
As always, you're a genius. Thank you very much for the assistance.
-
Glad you figured it out. Sorry I was away.
-
Hi everyone. I'm experiencing an issue on deploying IP2010 admin-approved forms to SP2016. Please refer to attached error message. I tried to change the form compatibility to both "Web based Form" and "Web based Form (InfoPath 2010)". Have anyone experienced the same issue? I was able to publish admin-approved forms before ...
-
If Save / Save As is disabled, I'd think you shouldn't get prompted - I wish I had time to reproduce this! You do need to have submit enabled, of course... I like adding a Close button to the form and hiding the ribbon myself.