This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided “as is” with no warranties.

Objective

K2 Smartforms: How does “Get confirmation from user” Action function in K2 Designer?

Before You Begin

K2 Designer is needed.

How-to Steps

STEP 1 - (Workaround 1)

When Submit is Clicked

   if Text Box Form control contains a value

then complete the following one after another

then show a message to the user (configure)

then show a message to the user (configure)

   if Text Box Form control contains a value then show a message to the user (configure)

then complete the following one after another

then show a message to the user (configure)

then transfer data (configure)

Image

STEP2 - (Workaround 2)

Advanced condition

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

Image

When Button is Clicked

   if an advanced condition is true

then get confirmation from user in a dialog with Confirmation heading and test message

   else

then stop rule execution

    if Text Box Form control contains a value

then show a message to the user (configure)

   else then complete the following one after another

then show a message to the user (configure)

Image