Skip to main content


 

Symptoms


When using the 'get confirmation from user in a dialog with {specify heading} heading and {specify message} message' action if user click a checkbox then need a confirmation message and if user click 'OK' then proceed it else clear the check box. But when user 'Cancel' the check box on confirmation message, how would you execute another method to clear the checkbox?

https://help.k2.com/onlinehelp/k2appit/UserGuide/1.5/default.htm#How_Tos/Display_a_Confirmation_or_Pop-Up_Dialog_and_More_Rule_Tips/Rule_Examples.htm?Highlight=confirmation

 

Diagnoses


N/A
 

Resolution

There are some special considerations when using the check box confirmation message. Please see the blog below:

https://tangjunjie.wordpress.com/2015/07/16/using-smartforms-rule-get-confirmation-from-user/
http://codecodecode.ninja/2015/04/k2-smartforms-how-get-confirmation-from-user-action-works/
https://startrule.wordpress.com/2014/09/10/smartforms-get-confirmation-more-elegantly/

Essentially, the 'if advanced condition is true' will execute when 'OK' is clicked whereas the 'else' block will execute if 'Cancel' is clicked.

You will also need to re-consider if you are also using the event 'if the checkbox is changed' instead of a button click event, as this can cause the same rule to re-execute when you call the method to uncheck the checkbox (as it is changed). If you have a 'Submit' type button, perhaps the rule can be implemented here instead.




 
Be the first to reply!

Reply