03

Configuring Actions on Data Entry

Building Single-State Workflows with Client Trigger Actions

🎯 Learning Objectives

Upon completion of this module, you will be able to:

Common Data Entry Actions

The following actions are commonly configured on client triggers to support data entry tasks. This module represents the first of several modularized workflows you'll create.

Set Field Display Type

Configures whether a field can be edited. Properties include: hidden, inline, disabled, and normal.

Triggers: Before User Edit, Before/After Field Edit, After Field Sourcing

Set Field Mandatory

Dynamically sets a field as mandatory (orange asterisk) or optional based on conditions.

Triggers: Before User Edit, Before/After Field Edit, After Field Sourcing

Set Field Value

The most used action in SuiteFlow. Sets values for dropdown lists, multi-select fields, dates, custom records, and workflow/state fields.

Triggers: All client triggers (value committed only when record is saved)

Return User Error

Displays error messages during validations. At Before User Submit, it cancels form submission.

Triggers: All client triggers (popup on client, full error page on server)

Show Message

Displays an alert with OK button. Does NOT prevent form submission—purely informational.

Triggers: All client triggers (client-side only, not on server)

Confirm

Displays a popup with OK and Cancel buttons. User can acknowledge or abort the action.

Triggers: Before Field Edit, Before User Submit

⚠️ Custom Field Limitation

Custom fields that are hidden on the record by default cannot be displayed using Set Field Display Type in a workflow. The field must be visible by default to be manipulated.

Understanding Workflow Conditions

Conditions allow you to limit when workflows initiate or when actions/transitions execute. They use Boolean logic—if something evaluates to true, then perform an action.

Condition Components

Each condition in the Visual Builder has three components:

  1. Left Side: The value to be compared (required)
  2. Operator (Compare Type): The comparison criteria (required)
  3. Right Side: The value to compare against (required except for empty/checked operators)

📋 Example Condition

IF Estimated Project Cost IS GREATER THAN $10,000

Left Side: Estimated Project Cost | Operator: Greater Than | Right Side: 10000

Common Compare Types

Compare Type Usage
Equal / Not EqualExact match comparisons
Greater Than / Less ThanNumeric comparisons
Empty / Not EmptyCheck if field has value
Checked / Not CheckedCheckbox fields
Any OfMatch ANY selected values in a list
None OfMatch NONE of the selected values
Contains / Does Not ContainPartial text matching

💡 Any Of vs. None Of

Any Of: Perform action if ANY selected value matches (OR logic)

None Of: Perform action only if NONE of the selected values match

Using Expressions for Complex Conditions

When you need to compare multiple values with AND/OR logic, use expressions in the Visual Builder.

✅ Expression Operators

  • AND: Both conditions must be true
  • OR: Either condition can be true
  • NOT: Inverts the condition result
  • Parentheses: Group conditions for complex logic

Multiple conditions without expressions are automatically ANDed together. Use expressions when you need OR logic or complex groupings.

Practical Examples

Example 1: Dynamic Mandatory Field

Make "Rating Code" mandatory when "Review Type" = Salary Change:

  1. Create Set Field Mandatory action on After Field Edit trigger
  2. Set triggering field to "Review Type"
  3. Add condition: Review Type = Salary Change
  4. Set Rating Code to Mandatory = True
  5. Important: Create a second action for the opposite—make optional when Review Type = No Salary Change

⚠️ Always Create Both Conditions

When making a field mandatory based on a condition, you MUST also create the action to make it optional under the opposite condition!

Example 2: Show/Hide Fields

Hide "Salary Increase Amount" when Review Type = No Salary Change:

  1. Create Set Field Display Type action on After Field Edit
  2. Triggering field: Review Type
  3. Condition: Review Type = No Salary Change
  4. Set Salary Increase Amount display type to Hidden
  5. Create second action: Show field (Normal) when Review Type = Salary Change

Example 3: Validation Error

Prevent salary increases greater than $10,000:

  1. Create Return User Error action
  2. Message: "Salary increase amount cannot be greater than $10,000"
  3. Condition: Salary Increase Amount > 10000

✅ User-Friendly Errors

When Return User Error fires on a client trigger, users see a popup they can acknowledge and then correct their data—much friendlier than server-side errors!

🎯 Hands-On Exercises

Build your first data entry workflow in your Student Workbook:

Go to Module 3 Exercises →

🌟 Key Takeaways