SAP Knowledge Base Article - Public

2802383 - OnChange Rule Do Not Work After The OnInit Rule Is Triggered In The Add New Hire Page

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.

1. BCUIPage.jpg

2.Rule_1.jpg

  • 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.

3. BCUI Screen.jpg

4. Rule_2.jpg

  • 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.

5. GlobalInfoAddNewHire.jpg

6. GlobalInfoAddNewHirePage.jpg

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 HCM suite all versions