# Read Receipts for When User Views the Details Page.

> This is a way to create read receipts for users who click on the detail page in the table component.

Source: https://tadabase.com/docs/snippets/read-receipts-for-when-user-views-the-details-page  
Status: Not yet re-checked. Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

![Screenshot for “Read Receipts for When User Views the Details Page.”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/image-1665692594116.png)

This is a way to create read receipts for users who click on the detail page in the table component.

**Step 1**

**Add a child table to contain your read receipts. Connect to users and the table you want to check if it was read.**

![Screenshot for “Read Receipts for When User Views the Details Page.”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/image-1665687955639.png)

**Step 2**

**Create a new pipe and add your API keys to the Global Parameters.**

![Screenshot for “Read Receipts for When User Views the Details Page.”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/image-1665689735842.png)

**Step 3**

**Add the following API call.**

https://api.tadabase.io/api/v1/data-tables/lGArg7rmR6/records?filters[items][0][field_id]=field_37&filters[items][0][operator]=is&filters[items][0][val]={loggedInUser}&filters[items][1][field_id]=field_38&filters[items][1][operator]=is&filters[items][1][val]={recordId}

> **Note:** Make the following three edits selected in blue to match your app.

![Screenshot for “Read Receipts for When User Views the Details Page.”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/image-1665691134328.png)

**1. Read receipts table ID.**

![Screenshot for “Read Receipts for When User Views the Details Page.”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/image-1665690216967.png)

**2. Connected user field slug**

**3. Connected table field slug**

![Screenshot for “Read Receipts for When User Views the Details Page.”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/image-1665690980958.png)

**Step 4**

**Set up your pipe parameters, headers, and response, as seen in the images below.**

![Screenshot for “Read Receipts for When User Views the Details Page.”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/image-1665691208865.png)

![Screenshot for “Read Receipts for When User Views the Details Page.”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/image-1665691314382.png)

![Screenshot for “Read Receipts for When User Views the Details Page.”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/image-1665691390763.png)

**Step 5**

**Add a form with read receipts connected to your table (top image below) and set up a record rule to set the record value of the user to the logged-in user.**

![Screenshot for “Read Receipts for When User Views the Details Page.”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/image-1665691897183.png)

**Step 6**

**Add a class of hidden to the form and add the following JavaScript to the page to mark it as read when it is opened.**

![Screenshot for “Read Receipts for When User Views the Details Page.”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/image-1665692348136.png)

```
TB.render('component_4',function(data){
    data.ele.find($($('.af-form-submit')[1])).click();
});
```

> **Note:** Please remember to update the component ID to the ID of your form.

![Screenshot for “Read Receipts for When User Views the Details Page.”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/image-1665692387590.png)

![Screenshot for “Read Receipts for When User Views the Details Page.”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/image-1665692496380.png)

**Original Community Post:**

[Highlight unread / new records in table component - Community Discussions / How Do I - Tadabase Community](https://community.tadabase.io/t/highlight-unread-new-records-in-table-component/538/3)
