cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Custom Card with JavaScript URL - Latest Home Page

3,301

Hello,

On the Old Sap SuccessFactors HomePage, it was possible to put the JavaScript code in the Popover -> Raw HTML option. This is for the Employee to click on the Tile, select the request they want to open, to launch the form for themselves.

On the Lasted HomePage of Sap SuccessFactors, there is a new option called JavaScript URL, where they advise to put the URL of the JavaScript file, instead of putting the code directly in the Popover -> Raw HTML option (the code was placed in this option and the targeting did not work of the link).

How should it be placed? I already have the code ready, just have this URL of the JavaScript file to include in the field, or should it be placed in another way?

Thanks // Geovanna S

Accepted Solutions (1)

Accepted Solutions (1)

milenatoebe
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi

In this KBA 3033503 you can find the answer to your question:

  • JavaScript - Use this option to execute instructions in a JavaScript file: When a custom card is loaded on the homepage with a target JavaScript, the JavaScript content is not loaded yet. Once the user clicks the card, it will inject a script tag onto the page with the specified url. At that point the browser will execute the JavaScript file. It needs to be pure JavaScript (no HTML). Any JavaScript link would work here. All they need to do is make sure the JavaScript is served by themselves. . For this sample, they have created a small script here, to demonstrate how to use this custom card target.

Answers (1)

Answers (1)

0 Likes

Hi Milena,

Thank you so much for your answer.