Skip to main content
Bumped by Community user
added 21 characters in body
Source Link
Viraj
  • 568
  • 2
  • 5
  • 20

In Salesforce Knowledge articles, I'm trying to push data in Salesforce. (after refering this - https://goo.gl/U4kFHW)

I have the HTML file and it has few JavaScript function in it. I wasn't sure about this. For a test purpose, I added small JavaScript code in the HTML file and uploaded the zip.

<p id="demo"></p>

<script>
var cars = ["Saab", "Volvo", "BMW"];
document.getElementById("demo").innerHTML = cars[0];
</script>

This resulted as blank in the articles when it was published.

Any workaround way to include JS function to work inside the Text (rich)? This will help in Salesforce Knowledge articles and else where too. Thank you.

In Salesforce Knowledge articles, I'm trying to push data in Salesforce. (after refering this - https://goo.gl/U4kFHW)

I have the HTML file and it has few JavaScript function in it. I wasn't sure about this. For a test purpose, I added small JavaScript code in the HTML file and uploaded the zip.

<p id="demo"></p>

<script>
var cars = ["Saab", "Volvo", "BMW"];
document.getElementById("demo").innerHTML = cars[0];
</script>

This resulted blank in the articles.

Any workaround way to include JS function to work inside the Text (rich)? This will help in Salesforce Knowledge articles and else where too. Thank you.

In Salesforce Knowledge articles, I'm trying to push data in Salesforce. (after refering this - https://goo.gl/U4kFHW)

I have the HTML file and it has few JavaScript function in it. I wasn't sure about this. For a test purpose, I added small JavaScript code in the HTML file and uploaded the zip.

<p id="demo"></p>

<script>
var cars = ["Saab", "Volvo", "BMW"];
document.getElementById("demo").innerHTML = cars[0];
</script>

This resulted as blank in the articles when it was published.

Any workaround to include JS function to work inside the Text (rich)? This will help in Salesforce Knowledge articles and else where too. Thank you.

Source Link
Viraj
  • 568
  • 2
  • 5
  • 20

Salesforce Knowledge || Can we use JavaScript or jQuery functions in Text (rich) data type?

In Salesforce Knowledge articles, I'm trying to push data in Salesforce. (after refering this - https://goo.gl/U4kFHW)

I have the HTML file and it has few JavaScript function in it. I wasn't sure about this. For a test purpose, I added small JavaScript code in the HTML file and uploaded the zip.

<p id="demo"></p>

<script>
var cars = ["Saab", "Volvo", "BMW"];
document.getElementById("demo").innerHTML = cars[0];
</script>

This resulted blank in the articles.

Any workaround way to include JS function to work inside the Text (rich)? This will help in Salesforce Knowledge articles and else where too. Thank you.