Greetings. I have an InfoPath based process that uses one InfoPath form and is rendered via Form Services. I am using the OOB Submit button so all of my rules that get executed when a user clickes 'Submit' are configured via 'Tools -> Submit Options -> Rules'. I am trying to put some error checking on my Submit rule that prevents the form from being submitted if a value = TRUE. In order to accomplish this I have two rules that get executed before all the other submit rules:
1. Execute SmartObject method (no conditions on this rule)
2. If (SmartObject.Property IS NOT BLANK)
then
Set local XML field value = TRUE
'Stop processing rules when this rule finishes' is checked here.
So the idea here is stop processing all the subsequent rules if a value = TRUE. I have a section on the form that has conditional formatting that if my value = TRUE then the section will be visible and it basically warns the user that they need to do something prior to submitting. I am also attempting to use a custom 'Close View' that should be switched to after all the submit rules have finished.
The problem I'm facing (image below) is that K2 appears to be changing the form submit options to 'After submit: Close the form' and this behavior wipes out all of my custom rules. I need the form to stay opened and simply switch to my custom view that tells the user that they can now close the form. If I don't have this, then my TRUE/FALSE rule described earlier will execute, all other rules will stop exectuing, but the form closes and the user can't see the warnings and it remains in his/her K2 work list.
Any thoughts are appreciated. Thanks.