Can a set a mandatory body field in a Sales Order transaction based on an item selection in sublist?
I have seen the workflow “set mandatory field” option, but when I look through the conditions for the trigger, I cannot find how to set it based on the item selection.
For example, I want to make a personalized date field mandatory, If the item selected for sale is a specific service item.
For this I would create a Sublist Action Group set to Items, then create a Return User Error action using the criteria of Item = specific service item. It would throw a warning with whatever text you want – something like “You must populate [enter field name here] before saving.” It is not technically the same as the set mandatory field action, but should achieve the same result of restricting save when not populated. Of course you would want it to trigger as a Before Record Submit to actually prevent the save… hope this helps!
Hi Darichan,
Please follow the below steps,
- Navigate toCustomization > Workflow > Workflows > New.
- Set the following:
Record Type= Transaction
Sub Types = Sales Order
Release Status = Released
Trigger Type = On Create, On Update - Click onSave.
- Create aNew State > Click on Save.
- Click onNew Action > Select Set Field Mandatory
- Set the following:
Trigger On= Before Record Load
Event Type = Create, Edit
Parameters: Field = Job (Main)
Mandatory = checked - Set the condition as Item Type = Service
- Click on Save.



