JavaScript and Dynamic Data
<script>
// Write some JavaScript in here.
</script>Accessing the Document payload

Related articles
Debugging your JavaScriptLast updated
Was this helpful?
<script>
// Write some JavaScript in here.
</script>
Last updated
Was this helpful?
Was this helpful?
{
"movie": {
"title": "12 Monkeys",
"year": 1995
}
}<script>
const movieTitle = $docPayload.movie.title;
const titleDiv = document.getElementById('mt');
titleDiv.textContent = movieTitle;
</script>
<div id="mt"></div><script>
const movieTitle = "{{movieTitle | upcase}}";
</script>