How to make a cancel option on a button which executes rules - InfoPath Dev
in

InfoPath Dev

How to make a cancel option on a button which executes rules

Last post 01-18-2012 12:28 AM by Jimmy. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 01-17-2012 01:46 AM

    How to make a cancel option on a button which executes rules

    Hi All

     Does anyone know a way to make a cancel option on a button which is performing actions using rules? For example to bring up the infamous "Are you sure" dialog box before executing the actions?

    In C# it it can be done with cancelable arguments, but I have a button which is executing a lot of actions using rules, and I don't really want to re-write the whole thing using code.

    We are using InfoPath 2007 with client (not browser form).

    Thanks & regards

     

  • 01-17-2012 03:37 AM In reply to

    Re: How to make a cancel option on a button which executes rules

    Are there a lot of cases where you want to show a confirmation message in your form, or just 1 or 2?  The simplest way to accomplish this functionality is to use conditional formatting to show a section in the form that says "Are you sure you want to do this?" with a Yes and No button.  On the Yes button, you place the rules to carry out the action that is pending confirmation.  On the No button, you place some rules to re-hide the confirmation section and reset any other values that you need to.

    Would that work for you?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 01-17-2012 11:58 PM In reply to

    Re: How to make a cancel option on a button which executes rules

    Thanks - I'll try it.

    What I was really hoping for was a conditional branch, but I guess that can't be done with rules?

  • 01-18-2012 12:28 AM In reply to

    Re: How to make a cancel option on a button which executes rules

    Yeah, this is pretty much the only option right now.  For a while now, we've had standard windows message boxes (with the ability to use Yes/No/Cancel buttons) as a proposed feature of our qRules suite, and if that were available, I think you could design your rule logic the way you're envisioning it, but alas we haven't had the time to implement it just yet.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.