Custom entity field value in custom content script

Hi All,

I have added one html label in custom content. I want to change the text of that label with custom entity field value.

For example:

1. I created Test Entity

2. Created test_amount field

3. Created summary screen and added above field to screen

4. In custom content added one lable

<label id="lblamt"></label>

<script>

document.getElementById('lbltest').innerHTML =????????;

</script>

Now how can I get the test_amount value into the label.?

Please help me out.