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
When no rules exist, a “+” button appears in the center of the panel labeled “No rules. Click here to add a rule.” Clicking this button adds a new rule row with the following columns:
Event
Condition
Action
Alternatively, if there is an existing rule, click the three-dot icon under the event column of the previous rule, then select Add to insert a new rule.
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