Create Workflow
- Navigate to Customization > Workflow > Workflows > New
- Basic Information:
- Name: Enter Set Field Mandatory as per Check Box
- Record Type: Select Vendor
- Execute as Admin: Enter Checkmark
- Release Status: Select Released
- Keep Instance and History: Select Always
- Enable Logging: Enter Checkmark
- Initiation:
- Event Based: Enter Checkmark
- Event Definition:
- On Create: Enter Checkmark
- On View or Update: Enter Checkmark
- Trigger Type: Select -All-
- Click Save
- Click State 1
- Bottom right corner: Click New Action
- Click Set Field Mandatory
- Basic Information:
- Trigger On: Select Before Record Load
- Parameters:
- Field: Select the specific field
Note: Select the field which should be mandatory or not mandatory. - Mandatory: Enter Checkmark
- Field: Select the specific field
- Condition: Select Visual Builder
- Condition: Click Launcher Icon
- Workflow Condition:
- Field: Select Custom Check Box
- Compare Type: Select Checked
- Click Add
- Click Save
- Click Save
- Top left corner: Click New State
- Double-click State 1
- Click Transitions
- Click New Transition
- Basic Information:
- To: Select State 2
- Click Save
- Click State 2
- Bottom right corner: Click New Action
- Click Set Field Mandatory
- Basic Information:
- Trigger On: Select After Field Edit
- Parameters:
- Field: Select the specific field
Note: Select the field which should be mandatory - Mandatory: Enter Checkmark
- Field: Select the specific field
- Triggering Client Fields:
- Triggering Client Fields: Select Custom Check Box
- Condition: Select Visual Builder
- Condition: Click Launcher Icon
- Workflow Condition:
- Field: Select Custom Check Box
- Compare Type: Select checked
- Click Add
- Click Save
- Click Save
- Click State 2
- Bottom right corner: Click New Action
- Click Set Field Mandatory
- Basic Information
- Trigger On: Select After Field Edit
- Parameters
- Field: Select the same specific field
Note: Select the same field defined in the workflow action earlier - Mandatory: Remove Checkmark
- Field: Select the same specific field
- Triggering Client Fields:
- Triggering Client Fields: Select Custom Check Box
- Condition: Select Visual Builder
- Condition: Click Launcher Icon
- Workflow Condition:
- Field: Select Custom Check Box
- Compare Type: Select not checked
- Click Add
- Click Save
- Click Save
- Double-click State 2
- Do Not Exit Workflow: Enter Checkmark
- Click Save
- Click State 2
- Bottom right corner: Click New Action
- Click Return User Error
- Basic Information
- Trigger On: Select Before Record Submit
- Parameters
- Text: Enter Error message
- Mandatory: Remove Checkmark
- Condition: Select Visual Builder
- Condition: Click Launcher Icon
- Workflow Condition:
- Field: Select Custom Check Box
- Compare Type: Select checked
- Click Add
- Field: Select the specific field
Note: Select the field which should be mandatory or not mandatory - Compare Type: Select Empty
- Click Add
- Click Save
- Click Save