Symptom
'onInit' rule configured to set the field's visibility to 'None' & also set a value through a rule is not working in Add New Employee Page.
Environment
SAP SuccessFactors Employee Central - Add New Employee
Reproducing the Issue
Prerequisites - In Job Information, an 'onInit' Rule is configured to set the visibility of field to ‘None’ & also set value to it in Add New Employee wizard.
- Navigate to Add a new employee.
- Try to trigger a rule to set the field value which is hidden through an 'onInit' rule.
- Once the user is submitted and workflow is approved [If configured].
- Navigate to Job Information, value is not present for the field.
Resolution
- Product Engineering has confirmed that this is not a recommended configuration.
- A field that is hidden should not be set with a value using rules.
- Solution: Make the field(s) visibility as 'View' in the rule. This makes the field 'Read Only' and value will be set as per the rule logic defined.
- Example screenshot below:
Keywords
Add New Employee, Add New Employee for Fixed Term, and Rehire Inactive Employee, new hire, field, visibility, none, add new employee, value, INC6728413, set, null, oninit, onchange,onsave,3406090 , KBA , LOD-SF-EC-HIR-NEW , Add New Employee Wizard , LOD-SF-EC , Employee Central , How To