Symptom
Enhanced validation to prevent an onChange rule from setting a mandatory field's visibility to None via centralized service starting from 2023.
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
1. Add a new custom field and set it as Mandatory in employment info.
2.Add onChange rule under event reason and based on the termination reason, set custom field's visibility as None.
3.Enable "Enable Centralized Services to Save Changes on the Manager Self-Service UI for Termination Details" from Company System and Logo Settings.
4. Error occurred.
5. Without this option enabled, then no error and change is saved.
Cause
It is not supported to have a rule to set field's visibility to none if this field is set as Mandatory in Manage Business Configuration.
Resolution
Please set this field as non-mandatory if you want to have an onchange rule to hide this field.
Keywords
Enable Centralized Services to Save Changes on the Manager Self-Service UI for Termination Details, required field, attribute is mandatory, centralized service , KBA , LOD-SF-EC-TER , Termination Details , How To