﻿# Most recent activity

> [HTML Version](last-activity.html)

The widget can be used on the view forms of [leads](leads.md) and [deals](360012680899.md) to display the date of the most recent interaction with the app item.

It shows the date of the nearest planned [CRM task](360012911980.md) associated with the item and the number of days left before its due date. If there are no pending task related to the app item, the widget displays:

- The date of the most recent comment in the [associated activity stream](360014352191.md#app-item). You can also display the dates of the comments made on behalf of the user while executing a script, or business process notifications where the current user is specified as the author. To do that, go to **Administration > Most Recent Activity** and enable the option.

- The date of the item's status change.

This allows you to track items that sales reps haven’t worked with for a long time.

By default, the widget is placed on the sidebar of leads and deals. If the widget is not displayed, add it to the view forms of these apps manually.

**(recent-activity-01.PNG)**

## Add the widget

To place the widget on a form, drag it from the right-side panel of the [interface designer](interface_designer.md) to the modeling canvas or click **+Widget**. Read more about adding widgets in the [Add a widget to a page](360027211631.md) article.

In the window that opens, configure the widget.

### Main tab

**(last-activity-1.png)**

- **Object\***, **App\***. These fields are filled out automatically based on the app whose view form you’re configuring.

- **Show day counter\***. If you check this box, the widget will show how many days has passed since a user last interacted with the item or how many days are left until the due date of the nearest planned CRM task. This option is enabled by default.

### Events and System tabs

These tabs contain system settings similar for all widgets. They allow you to set the widget’s visibility and access permissions, configure the widget’s behavior when the user hovers over it, etc. Read more about these settings in the [System widget settings](common_widget_settings.md) article.

To place the widget on the form, save the settings. To make the form available to users, click **Save** and **Publish** on the interface designer toolbar.