Symptom
The requirement is to hide fields using an onChange UI rule on the field level.
Scenario (applies to all MDF objects; Position object used as example):
- The Position object has Field X, which triggers an onChange rule that populates Field Y (within the same object).
- In Manage Configuration UI, Field Y has an onChange UI rule configured to hide Field Z.
- While Field Y is populated correctly, Field Z is not being hidden as expected.
Environment
- SAP SuccessFactors HCM Suite
- SAP SuccessFactors Employee Central
Reproducing the Issue
- Navigate to Manage Data and select Create New → Position.
- Populate Field X.
- As a result, Field Y is automatically populated by an onChange UI rule configured on Field X.
- Observe that although Field Y now contains a value, the onChange UI rule configured on Field Y is not triggered, and Field Z remains visible.
Cause
For MDF objects, onChange UI rules are triggered only when a field change event occurs directly in the user interface (UI).
In this scenario, Field Y is populated programmatically by an onChange UI rule on Field X, rather than through a direct user interaction. As a result, no UI change event is triggered for Field Y, and the associated onChange UI rule is not executed.
Resolution
- If the onChange UI rule must remain configured on Field X, users need to manually change or reselect the value in Field Y in the UI.
- This action triggers the onChange UI rule on Field Y, resulting in Field Z being hidden as expected.
- Alternatively, remove the onChange UI rule from Field X.
- This ensures that Field Y is populated only through direct user interaction in the UI, which will correctly trigger the onChange UI rule to hide Field Z.
See Also
Keywords
MDF, onChange rule, UI rule, business rule, Manage Configuration UI, Manage Data, Position object, field visibility, field dependency, UI behavior, rule not triggered, field change event, SAP SuccessFactors, Employee Central, dynamic visibility , KBA , LOD-SF-EC-MDF , MDF & EC2MDF Migration , LOD-SF-EC-POS , Position Management , How To
SAP Knowledge Base Article - Public