Symptom
OnChange rule do not work after the onInit rule is triggered in the add new hire page.
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
SAP Successfactors Employee Central
Reproducing the Issue
- An OnInit rule is placed in the globalInfo for the country India. This is to set ‘Is Physically Challenged’ field to ‘No’ and also set the visibility of 3 fields to none.
- There is also an onChange rule on the field “Is Physically Challenged’ to set the visibility of the fields based on the it’s value.
- In add new hire wizard, the field value is defaulted to ‘No’ and so as the visibility of the other 3 fields is set to ‘none’ but once the field ‘Is Physically Challenged’ is changed to ‘Yes’, the fields do not become visible as per the onchange rule.
Resolution
- Our engineering team has confirmed that this is a product gap/limitation. When OnInit or onView rule hides a field, onChange rule will not be able to make it visible again.
- Currently, the only workaround is to delete the global information using the 'Trash' icon and add new global information. Then, the onChange rule should work.
See Also
2507511 - Field visibility using an onView rule does not switch immediately
Keywords
ECT-38475, OnInit, onView, OnChange, Global Infomration, Add New Hire, Business Rules, Visibility, Change, Update, Hide, Show, Display, None, Visible, Both, Edit , KBA , LOD-SF-EC-HIR-NEW , Add New Employee Wizard , LOD-SF-EC-HIR , Hire & Rehire Wizards , Problem
Product
SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HXM Suite all versions