All,
I've an SP 2010 form which have Form Submit Rules when a button is pressed. It's action is Submit. The rules work as expected, i.e. set fields, swich views etc.When you press the submit button the forms switch to a 'thank you' view. On this view there is a button "Close". The close buttons use rules and code - Basically it closes the with no prompt.
Now I add the infopath form to a web part page. All works as expected except the Close button on the thank you view. Instead of closing the form. The button reloads the form and goes to the next view of the form. The web part default behaviour is to leave the form open as is the infopath form submit action.
How can I get it so that the close button works and closes the form and doesn't re-load the form. The webpart submit behaviour is greyed out.