The Status field (ID = orderstatus) is hidden on the Sales Order form in View mode even though the “Show” checkbox is marked on the Custom Form. In order to show the Status field in View mode, a workflow can be deployed to change the Display Type of the said field.
However, in this instance, the value of the Status field will not be the normal ones like “Pending Approval”, “Pending Fulfillment”, etc. Instead, a corresponding letter will show for each Status.
Solution
A sample workflow may be created as follows:
- Navigate to Customization > Workflow > Workflows > New
- Basic Information:
- Name: Enter Workflow Name
- Record Type: Select Transaction
- Sub Types: Select Sales Order
- Execute as Admin: Enter Checkmark
- Released Status: Select Released
- Keep Instance and History:Select Always
- Enable Logging: Enter Checkmark
- Event Definition:
- On View or Update: Enter Checkmark
- Click Save
- Double-click State 1
- Click New Action
- Click Set Field Display Type
- Basic Information:
- Trigger On: Select Before Record Load
- Condition:
- Condition: Click Open
- Field: Select Order Status
- Selection: Select Billed, Cancelled, Closed, Partially Fulfilled, Pending Approval, Pending Billing, Pending Billing/Partially Fulfilled, Pending Fulfillment
- Click Add
- Click Save
- Parameters:
- Field: Select Order Status
- Display Type: Select Normal
- Click Save
- Click Save
Once the workflow is deployed, the Sales Order will show the Status field even on View mode with the following values:
- If Pending Approval, Status = A
- If Pending Fulfilment, Status = B
- If Cancelled, Status = C
- If Partially Fulfilled, Status = D
- If Pending Billing/Partially Fulfilled, Status = E
- If Pending Billing, Status = F
- If Billed, Status = G
- If Closed, Status = H
Note: The value of the Status field remains normal in Edit mode.