SAP Knowledge Base Article - Public

3095872 - Job Alerts option still shows on Candidate Profile when RMK switch disabled - Recruiting Marketing

Symptom

After disabling Job Alerts in CSB the option to access or create job alerts in the candidate profile is still available.

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 Recruiting Marketing (RMK)
  • SAP SuccessFactors Recruiting Management (RCM)

Reproducing the Issue

  1. From Admin Center > Navigate to Career Site Builder;
  2. Open Settings;
  3. Select Site Configuration and scroll down to Job alerts Settings;
  4. Set slider "Use Job Alerts" to "No";
  5. Open RMK site;
  6. log into profile;
  7. Open Options Menu;
  8. Job alerts are still showing.

Resolution

As of now there's no way to hide the Job Alerts option from the Options menu in the Candidate Profile via standard configuration. In the meantime we don't have a resolution for this issue, our Product Management has provided a JavaScript code that can be added in CSB to have this option hidden.

Follow the below steps to apply this workaround:

  1. Navigate to Career Site Builder > Appearance > Global;
  2. Click on JavaScript tab;
  3. Paste the following code in the header section;
  4. Save the configuration. 
[Replace this entire line by the line informed in the note 1]
if ( (window.location.href.indexOf("successfactors") > -1) || (window.location.href.indexOf("sapsf") > -1) ) {

    const body = document.body;
    body.addEventListener('click', e => {
    try { var element = document.getElementById("23:1"); element.parentNode.removeChild(element); } catch (error) { }
    try { var element = document.getElementById("24:1"); element.parentNode.removeChild(element); } catch (error) { }
    try { var element = document.getElementById("26:1"); element.parentNode.removeChild(element); } catch (error) { }
    try { var element = document.getElementById("16:1"); element.parentNode.removeChild(element); } catch (error) { }
    try { var element = document.getElementById("15:1"); element.parentNode.removeChild(element); } catch (error) { }
    try { var element = document.getElementById("22:1"); element.parentNode.removeChild(element); } catch (error) { }
    });
}
else {
}
</script>


Note 1: The KBAs don't accept the following line as a text, so we are providing as an image. Make sure to type this line as the first line of the script.

Result: Job Alerts option is no longer visible.

Keywords

Job Alert, Candidate Profile, Cannot Disable Job Alerts, RMK-26462 , KBA , LOD-SF-RMK-CSB , Career Site Builder , Known Error

Product

SAP SuccessFactors Recruiting all versions

Attachments

Pasted image.png
Pasted image.png