Rule Panel
The Rule Panel in Workmaster is a visual logic builder that allows you to define custom behaviors on your pages. Using a combination of events, conditions, and actions, you can create dynamic workflows that respond to user interactions or page activity — all without writing code.
This panel appears at the bottom of the screen and can be expanded or collapsed using the arrow icon located in the bottom-left corner of the builder.
Components of the Rule Panel
Each rule in the panel is structured into three key components:
1. Event
Defines the trigger that initiates the rule. Examples include:
Page load
Button click
Input change
Element visibility
2. Condition
Specifies the logic that must be true for the action to proceed. If no specific logic is required, the default condition is TRUE
. You can also use:
Field values (e.g., if input is not empty)
User status (e.g., user is logged in)
You can also toggle a NOT gate next to the condition to negate the logic, making it easy to trigger actions when a condition is false.
3. Action
Defines what should happen when the rule is triggered and the condition is met. Actions include:
Navigating to a different page
Showing or hiding elements
Displaying messages
Modifying field values
Creating and Managing Rules
Adding a New Rule
When no rules exist, a "+" button will appear in the center of the panel, labeled "No rules. Click here to add a rule."
Click the "+" button to create a new rule. This will add a new rule row with three columns:
Event
Condition
Action
Adding a Rule to an Existing One
If you already have an existing rule, you can add a new rule below it by clicking the three-dot icon under the Event column of the existing previous rule.
Select "Add" from the menu to insert a new rule.
Using Multiple Conditions in a Rule
If you want to add more complexity to your rule, you can use multiple conditions to control when the rule runs:
Using "Not": Each condition has a Not option that you can enable to reverse the condition. For example, if the condition is to check if a field is empty, enabling Not would check if the field is not empty.
Using "And" and "Or":
And: If you want the rule to only run when all conditions are true (e.g., if two fields are filled), you can add another condition and connect them with And.
Or: If you want the rule to run when either condition is true (e.g., if one field is filled or another action is performed), you can add another condition and connect them with Or.
These options allow you to build more specific logic for when and how your rules are triggered.
Using Multiple Actions in a Rule
In Workmaster, you can set up multiple actions within a single rule, allowing you to perform more than one task when the rule is triggered. For example, you can configure a rule that performs two actions on a button click: saving data to the database and sending an email to a specific user.
How to Add Multiple Actions: After setting the initial action in your rule, you can add additional actions by clicking the three-dot icon under the Action column of the existing rule.
Select "Add" from the dropdown menu to insert a new action beneath the current one.
The new action will be added, and you can define what it should do (e.g., save data, send an email, etc.).
This feature is useful when you need to perform several tasks simultaneously or in sequence, all triggered by a single event.
Three-Dot Menu Options
Clicking the three-dot icon beside any rule component reveals additional actions:
Add – Adds a new row for chaining multiple conditions or actions.
In the Condition section, you can also define logic gates such as:
AND – All conditions must be true
OR – At least one condition must be true
Copy – Duplicates the current row.
Paste Up / Paste Down – Pastes a copied row above or below the selected rule.
Delete – Removes the selected rule or row.
This setup enables flexible logic flows and detailed condition handling.
🧠 Example Use Case
When the page loads (Event), if the user is not logged in (Condition with NOT gate), navigate to the login page (Action).
The Rule Panel empowers you to build fully interactive behaviors in your application with a visual, code-free approach. It’s designed to be intuitive for beginners yet powerful enough for complex logic handling.
Last updated