Jump to content
  • 0
NeoInJS

Hide a row from a tabular report based on the result of a calculated field

Question

Need assistance please - I want to Hide a row from a tabular report based on the result of a calculated field. For example tracking of attendance.

If my Calculated field (Status) = "No", the name of the student will be hidden in the table.

Thank you.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi NeoInJS,

You can try something like this:

<div id="row-marker-[@field:Teacher_ID]"></div>
<script>
    var marker = document.getElementById('row-marker-[@field:Teacher_ID]');
    var column = marker.parentNode;

    if ('[@calcfield:1]' === 'Alice')
    {
        var row = column.parentNode;
        row.style.display = 'none';
    }
</script> 

Hope this helps.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...