none
Add Cancel button to an InfoPath form based on SharePoint 2010 list RRS feed

  • Question

  • I used the "Form Settings" of a SharePoint 2010 list to create a customized InfoPath form.  I would like to add a Submit and Cancel button at the bottom of the form.  The Submit button is easy to do because there is a default submit rule I can associate with the button.  However, there isn't a default cancel rule, and the Action item for a new rule is greyed out.  Any suggestions on how I can get my cancel button to work on my form?
    Friday, January 7, 2011 4:48 PM

Answers

  • Make the Cancel button a "rules and custom code" type, then add a single action that closes the form.  Also, disable the Save option in File > Form Options > Filler, then disable the toolbar in File > Form Options > Browser > disable toolbars.
    SharePoint Architect || Microsoft MVP || My Blog
    Planet Technologies || SharePoint Task Force
    • Marked as answer by SD Eric Friday, January 7, 2011 5:46 PM
    Friday, January 7, 2011 5:38 PM
  • you tried adding a button, with a rule of closing the form when clicking?
    http://path2sharepoint.com
    • Marked as answer by SD Eric Friday, January 7, 2011 5:46 PM
    Friday, January 7, 2011 5:04 PM

All replies

  • you tried adding a button, with a rule of closing the form when clicking?
    http://path2sharepoint.com
    • Marked as answer by SD Eric Friday, January 7, 2011 5:46 PM
    Friday, January 7, 2011 5:04 PM
  • Make the Cancel button a "rules and custom code" type, then add a single action that closes the form.  Also, disable the Save option in File > Form Options > Filler, then disable the toolbar in File > Form Options > Browser > disable toolbars.
    SharePoint Architect || Microsoft MVP || My Blog
    Planet Technologies || SharePoint Task Force
    • Marked as answer by SD Eric Friday, January 7, 2011 5:46 PM
    Friday, January 7, 2011 5:38 PM
  • I forgot to highlight the cancel button before selecting a rule.  Silly mistake. 

    Clayton, thank you for the additional information on hiding toolbar.

    Eric

    Friday, January 7, 2011 5:48 PM