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. format always comes before action

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?

1 Answer 1


You need to add the logic to set the boolean field just before the submit rule on the button, and have the formatting rule on the button to hide it when that boolean field == true.

If you add this logic to the field after the submitting rule, it will not be saved with the form, and next time users open the form it won't be hidden as the rule to hide it came after the submit.

  • Thank you. The boolean field logic actually is before the data submission. The problem is that there doesn't seem to be a way to put the conditional formatting after the switch. That was my thinking as well. Apparently Infopath always puts the formatting first. I've spent all day trying to come up with a work-around. BTW, I forgot to mention I'm on 2013 for both Sharepoint and Infopath.
    – mclatch
    Commented Feb 19, 2015 at 20:57
  • Where are you doing the validation?
    – user19105
    Commented Feb 19, 2015 at 23:19
  • Also why not just add the action to set the "DoNotShowSubbmit" after you switch to the second view? I am not sure if am following you right here.. The sequence is to validate the data.. if everything is ok then set the field to true then submit and switch view. What are you doing exactly?
    – user19105
    Commented Feb 19, 2015 at 23:22
  • For right now I am not doing any validation.
    – mclatch
    Commented Feb 20, 2015 at 14:35
  • OK, so can you clarify based on the steps I mentioned in my previous comment, how is it not working with these steps?
    – user19105
    Commented Feb 20, 2015 at 14:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.