Symptom
Adding a required attribute override in the Application template when there is already a public override for the same field causes the field to disappear from the Application form when applying as an external or internal candidate
Environment
SAP SuccessFactors Recruiting Management
Reproducing the Issue
- Define a field in the application template as follows:
<field-definition id="testField" type="picklist" required="false" custom="true" public="false" readOnly="false" anonymize="false" forward-intact="false" sensitive="false">
- Define an override for the field to change it to be public=true for certain countries i.e. this override means that the testField will only be visible on Job Requisition applications in the UK and Ireland for both internal and external applicants:
<field-attr-override>
<override>
<description><![CDATA[Make fields public for these countries]]></description>
<country><![CDATA[GB]]></country>
<country><![CDATA[IE]]></country>
<field-attr attribute="public" value="true" applicant="both"/>
</override>
<field refid="testField"/>
</field-attr-override> - Then create another override to set is as required for just one country i.e. this override will mean that the testField is a required field only for Job Requisition applications in the UK for both internal and external candidates:
<field-attr-override>
<override>
<description><![CDATA[Make fields required for UK only]]></description>
<country><![CDATA[GB]]></country>
<field-attr attribute="required" value="true" applicant="both"/>
</override>
<field refid="testField"/>
</field-attr-override> - The field is now no longer visible from the Application Page when applying as an external or internal candidate
Cause
This is caused by declaring two overrides that conflict with each other
Resolution
Add both attributes to the override in order for the field to appear as required:
<field-attr-override>
<override>
<description><![CDATA[Make fields required for UK only]]></description>
<country><![CDATA[GB]]></country>
<field-attr attribute="public" value="true" applicant="both"/>
<field-attr attribute="required" value="true" applicant="both"/>
</override>
<field refid="testField"/>
</field-attr-override>
NOTE: It is not possible to update both attributes in the one override via Manage Templates. This must be done via the application XML template directly by the Implementation Partner or SAP Professional Services
See Also
2449356 - Is it possible to control the Required attribute in Override - Recruiting Management
2840289 - Override Not Working for All Internal Candidates - Recruiting Management
2632344 - Field Attribute Override in SuccessFactors Recruiting
Keywords
overrides, public, required, duplicate, missing, invisible, double , KBA , LOD-SF-RCM-APP , Applicants and Job Applications , Problem