Skip to content

unable to show data in html template #391

@mybluedog24

Description

@mybluedog24

Hi,

I'm trying to customize the UI of the assessment node using the HTML template. However, I couldn't find out what variable I can use in the HTML. I tried below but nothing show up:

<script>
(function() {
  var data = {{ item | default({}) | json_encode | raw }};
  var assessmentData = {{ assessment.flatItems | default([]) | json_encode | raw }};

  console.log("item:", data);
  console.log("assessment.flatItems:", assessmentData);
})();
</script>

Any helps are appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions