SAP Knowledge Base Article - Public

3497165 - Rule To Set Field Visibility and Set Values On Hiring An Employee Is Not Working

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.

  1. Navigate to Add a new employee.
  2. Try to trigger a rule to set the field value which is hidden through an 'onInit' rule.
  3. Once the user is submitted and workflow is approved [If configured].
  4. Navigate to Job Information, value is not present for the field.

Resolution

  1. Product Engineering has confirmed that this is not a recommended configuration.
  2. A field that is hidden should not be set with a value using rules.
  3. 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.
  4. 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

Product

SAP SuccessFactors Employee Central 2311