Symptom
Need to hide fields based on onChange UI rule. However, this is not working.
*Note: This applies to all MDF Objects. For this KBA, we will use Position Object.
Position object has a field X and this has an onChange rule to populate field Y (from the same Position object)
Then, from Manage Configuration UI, field Y has an onChange UI rule to hide field Z.
Field Y populates properly, however, field Z is not being hidden.
Environment
SAP SuccessFactors - Employee Central
Reproducing the Issue
1. Login to the system.
2. From Manage Data > Create Position
3. Populate field X, field Y is auto-populated (due to onChange rule from the field X in the Position object)
Since field Y is already populated - value has changed, we think that onChange UI rule for this field will trigger to hide field Z, however, the rule is not triggering.
4. Select field Y value from the UI, field Z will be hidden - onChange UI rule triggered.
Cause
For fields, onChange rules are triggered only when a field change event is triggered in the user interface (UI).
Resolution
When using onChange rule, ensure that it is assigned only to the fields that require manual selection from the UI.
See Also
Keywords
onChange rule, UI rule , KBA , LOD-SF-EC-JOB-RUL , Job Info Business Rules , How To