You could include a small Python script block with each label field.
This script could:
- Access all data fields in the current record
- Modify the current field
The API is especially useful, if you want to handle a field differently when another field has a special value, when you want to apply some calculation with the value, or when you want to use some field formatting not supported by the base system.
Accessing Field Values
Your script block is executed with 2 local variables accessible:
- Current field (in/out). This variable is None in the label script
- Value of any field in current record (in)
Modifying the Current Field
Simply overwrite val
Special functionality for labels scripts
Label scripts can change variables by calling: