K2 smartforms: How does “Get confirmation from user” Action functions

A lot of times before a form submission, changes to important values, etc. “Initialize” actions, you will want to prompt the User to get their confirmation on their action like the following:

Some weird logic.. =)
Some weird logic.. =)

Well.. The above is just for illustration and by no means you should irritate your Users, no matter how you dislike them =)

The Action that allow us to prompt and get a confirmation from the User is the “Get a confirmation from user” Action, which can cheap mlb jerseys be found under the “Notifications” section:

Where is the Action?
“Get confirmation from user” smartforms: Action

Now, based on the explanation from the production site the “OK” and “Cancel” buttons function like this:

  1. If the “OK” button is clicked, it will process the subsequent Actions.

    62-ActionsAfterGetConfirmation
    Click “OK” and the highlighted cheap mlb jerseys section will be processed.
  2. If the “Cancel” button it clicked, it will stop processing subsequent Actions.

    62-ActionsAfterGetConfirmation
    Click “Cancel” and the highlighted section will NOT be processed.
  3. When the Action is used in a “If” to condition, clicking on the “OK” button will process the subsequent Actions. Click on the “Cancel” button will process the “Else” condition.

    62-ActionInCond
    How the Action reacts to “OK” and “Cancel” clicks

It is pretty straight cheap mlb jerseys forward for the above cases, but it is different if Nullam you configure it like the following:

62-FailCond
Wrong configuration

In the sample, message B or C will still be processed after the user clicks on “Cancel” button. This is correct by design, since the production documentation states that it will only stop execution of follow-up Actions. So, an “If” is not an Action and thus will be processed regardless of the button clicked.

To make the above sample work, you will need to wrap Mac the Action within a Condition like the following:

62-CorrectConfig
Correct configuration

This setup will ensure that when the User clicks on the “Cancel” button, the “Stop rule execution” Action is triggered and the rest of the Rule processing is aborted. If the User clicks on the “OK” button, the follow-up Actions and Conditions will be processed.

Now, what did I put in the “If an advanced condition is true” Condition?

62-advCond
To ensure this condition always run.

It is a 1 cheap mlb jerseys = 1 condition which will ensure that it will always execute and support our “Get confirmation from user” scenario.

Hope this helps!

One thought on “K2 smartforms: How does “Get confirmation from user” Action functions”

Leave a Reply

Your email address will not be published. Required fields are marked *