Dojo,
Is it possible to embed JavaScript code in Custom HTML when using the web component of a LCA ?
<body>
<!-- HTML content -->
<script>
// Code that manipulates how a parameter value is displayed
</script>
</body>
Hi Wale,
It is not possible to add javascript when using a web component with custom HTML. Before rendering the content of the component, we sanitize it for security reasons. This means that, among other things, <script> tags are removed.
A different option you could use is to make your own custom webpage that is fully separate from our apps to display the data. This can then by embedded via URL in the web component. You can pass feed data using query parameters in that same URL to the custom webpage. This webpage could also retrieve the necessary data on its own using requests to our web APIs.