Changing approval workflow based on CB field value

Print

Overview

This is a nice use case example inspired by amir00251 (Professional member - thank you!).

The use case can be summarized as follows:

 

Solution

The CB Auto Actions plugin available for Professional members can be configured to enforce this exception by implementing the following actions:

The proposed solution has the following issues:

 

Implementation Example

In order to illustrate the previous solution concept we will make the following assumptions:

  1. A single select check box field is created in CB Field Manager. The name of this CB field is 'cb_singlecheckbox' and we have plubished it to appear on our registration form.
  2. The condition criteria that needs to be satsfied in order for the CB Auto Actions to fire is that this single check box field is clicked (selected) during the registration process.

Note: You can easily adjust the implementation logic for other field types.

 

CB Auto Actions Summary

alt

This is just a summary listing of the 4 CB Auto Actions implemented as part of the solution.

CB Auto Action SQL Pending Approval

alt

SQL Auto Action to modify the _comprofiler table approve column of the user if the condition is true.

CB Auto Action SQL Block User

alt

SQL Auto Action to modify the _user table block column of the user if the condition is true.

CB Auto Action Email to Notify Admin

alt

Email Auto Action to send notification message to administrator that user has been blocked and actions needed - once again, if the condition is true.

CB Auto Action Email to Notify Pending User

alt

Email Auto Action to send notification message to pending user that membership is still being processed - once again, if the condition is true.

 

Relevant Information