Jump to content
  • 0

Show last data point not last record




I need to create a List Datapage that shows only the last data points for each field. I know this can be done to show the last record entered, but not all fields will be completed per record entry.

For example:

Record 1 is entered and includes a result in Fields A and B, but nothing in Fields C and D

Record 2 is entered and there is no result in Fields A and B, but there is a result in Fields C and D

Is it then possible to show the result from Record 1 Fields A and B and Record 2 Fields C and D all in the same List Datapage?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hello @Jaymee

Try to insert this code in the header of the DataPage result set 

<script type="text/javascript">

document.addEventListener('DataPageReady', hideBlankHandler)

function hideBlankHandler() {
 let labels = document.querySelectorAll('.cbResultSetListViewDataLabel ');
 let values = document.querySelectorAll('.cbResultSetData');
 console.log(labels , values)

 for (let i = 0; i < values.length; i++) {
  if (values[i].innerHTML === "&nbsp;") {


You need to check two thing.

First - your DataPage has the Responsive option enabled
Second - you need to disable the HTML editor of the Header

Link to comment
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.

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.

  • Create New...