I'm creating a public facing form that needs to have the standard Submit button at the bottom of the form. The forms are stored in a Sharepoint form library for staff to review. The problem I'm running into is when one of the forms is opened in the library it still contains the custom button at the bottom of the page. This is potentially confusing to staff and I'd to store the form as is without the button.
I've tried a hidden boolean field that switches upon clicking the button and then using conditional format to hide the button based on the value of that field. The problem is conditional formatting rules always comes before Action rules.
I then tried switching to a view that replicates the form (minus the submit button) and submitting to the data connection based on the value of that hidden field. For some reason, that view is not what is sent to the form library.
Is there a way to get it to send the new view somehow rather than the original? Or is there a better way to hide this either in Infopath of on the Sharepoint side?