InfoPath 2010 Button Properties & Submit Options RRS feed

  • Question

  • You can only add "Action" type rules when you:  1.  Add a Button to an InfoPath 2010 form, 2.  set its Button Properties "Action:" value to "Submit",  3.  Select the "Submit Options" and choose the "Perform custom action using Rules".  Why can't you also add "Validation" type rules?

    Tuesday, November 15, 2011 12:18 AM

All replies

  • There is really nothing to validate about a button. I suspect you want to have fields show any validation errors if the button is pushed. If you set the validation on the fields they will not permit the submission and the error hints will show up so you will get this effect.


    there are other tricks you can use. you can set a hidden field value when a button is pushed and then set validation rules on that hidden field or on other fields that rely on the value of the hidden field. this can be used to create an effect where a button push triggers validations.

    • Proposed as answer by Thilosh V N Tuesday, November 15, 2011 7:27 AM
    Tuesday, November 15, 2011 2:39 AM
  • I use the Validation rules to Disable the Submit Button until all of the Required Fields have been filled in.  I know this is not necessary, but believe it's a good practice and avoids the ugly error message that is generated when someone tries to submit a document when a required field is not filled in. 

    I also use the Validaton rules to Hide the Submit button after the list item or a document has been filled in and submitted.  After an item or document has been created and is re-opened in the List or Library that it resides in, the Submit button re-appears as a valid/active option and we don't want that.

    I would like to be able to set up these validations on the Submit button, but Validation rules are greyed out when the Button properties "Action:" value is set to "Submit".

    Tuesday, November 15, 2011 3:28 PM