SAP Knowledge Base Article - Public

2540412 - UI Rule to Set visibility for field based on a separate field selection

Symptom

  • How to hide the visibility of a field in the UI based on the Value from a Picklist parent object;
  • How to use UI rules to hide specific fields on custom UI.

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 HCM Suite
  • SAP SuccessFactors Employee Central

Resolution

  1. Navigate to 'Admin Center' > 'Manage Configuration UI';
  2. Create New Object;
  3. Select Base Object (for example Position);
  4. Set up the fields for this object;
  5. Create a UI Rule;
    UIRule.JPG
  6. This rule has to account for all the options in the picklist;
  7. Set your If Condition for hiding the fields, as per example below:
    VisibilityNo.JPG
  8. Set the 'Else If' condition for the fields you want to show as visibile and save it:
    VisibilityYes2.JPG
  9. Navigate to the Parent Object, and edit the details;
  10. Select the rule you just created in the 'onChange UI Rules' section > Click OK and save it;
    ObjectDetails.JPG
  11. Last you need to set this as the 'Default Screen' for the Object in 'Configure Object Definition' > Save Changes made;
    ConfigObjDef.JPG

Note

Please be aware if a field is being hidden via UI rule or field properties from the UI level - it will not take effect on the History panel showing change. If the field is hidden from the object level, then it works as expected.

See Also

KBA 2438887 - How to create a custom field for a MDF Object in SuccessFactors? - SAP for Me

Keywords

sf ec, sfec, successfactors, Custom visibility, custom ui, UI rules, custom object, MDF, people profile, visibility, field level, onChange, EC, object, hide, , KBA , LOD-SF-MDF-UI , UI Config, Layout & Rules , LOD-SF-EC-MDF , MDF & EC2MDF Migration , LOD-SF-EC-RUL , DO NOT USE - Business Rules & Event Derivation , LOD-SF-MDF-OBJ , Object Definition & Field Related Issues , LOD-SF-MDF-PPX , MDF on New People Profile , How To

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM Suite all versions