So, I'm having the same need, and I think i found a work around. The save button that submits my form has code and a rule as well that closes the form. So the form code runs first, then the rules are applied. So on click, the code runs, does some logic then submits it, then the rules run and closes the form.
The ...