How can I show first 4 digits of a data?

The left-hand side is an Auto-generate ID by Wix of each data, but I only want to show the first 4 digits (e.g. 533b for the first data and e69b for the second data) as the id of each data. How can I do that?

let myNewShortID = myLongID.substr(0,4); console.log(myNewShortID)

really thank you. Is that I should put the code in the hook of the database or the page of the list? can you provide a full code please because i dun know coding :frowning:

@lmc20051308
This was just a short excerpt of what you will need to achieve your aim.

  1. You will first have to learn how to code, for example how to filter a dataset.
  2. In your filtering code you than can place/add the mentioned code-part.

Is that a table or a repeater what is shown in your pic. I suggest it is a → TABLE.

Then you have the oppertynity/possibility to get your wished VALUE right by a click onto the current selected table-row.

An example how to achieve such an functionality …

import wixWindow from 'wix-window';
 
$w.onReady(function(){
   $w('#table1').onRowSelect((event) => {
      let RowIndex = event.rowIndex;   console.log(RowIndex);
      let Rows = $w('#table1').rows;   console.log(Rows)
      let CellData = event.cellData;   console.log(CellData);     
   });
}); 

Use → CONSOLE to investigate the results.
How to use the console? —> If using → GoogleChrome-Browser → Press F-12 & navigate to —> CONSOLE.