> For the complete documentation index, see [llms.txt](https://docs.gridmate.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gridmate.io/product-tour/grids/mobile-grid.md). Agents can also search and read this documentation through its [MCP server](https://docs.gridmate.io/~gitbook/mcp).

# Mobile Grid

Work with records as touch-friendly cards in the Salesforce mobile app, with search, grouping and actions.

GridMate provides a mobile component **GM - Mobile Grid** to work with records from the **Salesforce mobile app**. Records are displayed as cards built for touch: a linked title, detail fields, an icon and an info button revealing more fields. Users can search, filter, sort, group with totals, color the cards and take actions on one or many records without leaving the page.

{% hint style="warning" %}
**GM - Mobile Grid** is available on **phone only**. It can be added to App, Record and Home pages when the Lightning App Builder is set to **Phone**, and it is displayed only in the Salesforce mobile app. On desktop, use [GM - User Grid](https://docs.gridmate.io/product-tour/grids/user-grid.md) or the other grid components.
{% endhint %}

In this tutorial, we will display the opportunities of an account on the account record page of the Salesforce mobile app using **GM - Mobile Grid**.

{% stepper %}
{% step %}

### Open the page

Select an Account record and edit the page in the Lightning App Builder.
{% endstep %}

{% step %}

### Switch to Phone

From the form factor list in the header, select **Phone**.
{% endstep %}

{% step %}

### Add the component

From the components list, drag and drop the component **GM - Mobile Grid**. The grid component is now ready for configuration in the Lightning App Builder.
{% endstep %}

{% step %}

### Configure the properties

The property values can be configured to tailor the mobile grid to the needs of the end-user. To perform a quick configuration, populate the property values in the table below.
{% endstep %}
{% endstepper %}

## Properties

| Property             | Demo value                     | Notes                                                                                                                                                                                        |
| -------------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Custom Label         | ***Opportunities***            |                                                                                                                                                                                              |
| Custom Icon          | ***standard:opportunity***     |                                                                                                                                                                                              |
| Target Object Name   | ***Opportunity***              |                                                                                                                                                                                              |
| Title Field          | **Name**                       |                                                                                                                                                                                              |
| Detail Fields        | **StageName,Amount,CloseDate** |                                                                                                                                                                                              |
| Popover Fields       | **Probability,OwnerId**        |                                                                                                                                                                                              |
| Row Limit            | **50**                         |                                                                                                                                                                                              |
| Filter               | `{"AccountId":"$recordId"}`    | On a record page, `$recordId` in the **Filter** is replaced by the Id of the current record. Use it to show the records related to the page record, for example `{"AccountId":"$recordId"}`. |
| Sort                 | **CloseDate**                  |                                                                                                                                                                                              |
| Order                | **Desc**                       |                                                                                                                                                                                              |
| Group By             | **StageName**                  |                                                                                                                                                                                              |
| Aggregate            | `{"Amount":"sum"}`             |                                                                                                                                                                                              |
| Search Fields        | **Name**                       |                                                                                                                                                                                              |
| Enable Update Object | **Checked**                    |                                                                                                                                                                                              |
| Enable Mass Update   | **Checked**                    |                                                                                                                                                                                              |
| Enable Delete Object | **Checked**                    |                                                                                                                                                                                              |
| Enable Mass Delete   | **Checked**                    |                                                                                                                                                                                              |
| Density              | **comfy**                      |                                                                                                                                                                                              |

{% hint style="info" %}
The Mobile Grid supports **card coloring** by providing the coloring configuration. The **label** of each condition is listed in the coloring legend. Below is the example of card coloring used in the demo.
{% endhint %}

```json
[
    {
        "label": "Closed Won",
        "color": "#C0F0B5",
        "exp": {
            "StageName": {
                "operator": "=",
                "value": "Closed Won"
            }
        }
    },
    {
        "label": "Closed Lost",
        "color": "#FFD6D6",
        "exp": {
            "StageName": {
                "operator": "=",
                "value": "Closed Lost"
            }
        }
    },
    {
        "label": "Big deal (> 100K)",
        "color": "#FFF1C2",
        "exp": {
            "Amount": {
                "operator": ">",
                "value": 100000
            }
        }
    }
]
```

{% hint style="info" %}
[Mass/Record action](https://docs.gridmate.io/advanced-guides/grid-actions/actions-library.md) can be configured based on requirement. We support quick actions, calling a flow and navigation.
{% endhint %}

{% hint style="info" %}
The Quick Filter supports **only** the following field types: Boolean, Currency, Double, Integer, Percent, Date, Datetime, Picklist, Multi-Picklist, String, and Reference.
{% endhint %}

## What users can do

From the Salesforce mobile app, users can:

* Tap the card title to open the record,
* Tap the info button to see the **Popover Fields**,
* Search the loaded cards on the **Search Fields**,
* Filter and sort the cards with the quick filters and the quick sort,
* Expand and collapse the groups, each with its count and its totals,
* Tap cards to select them, then mass update or mass delete them from the menu,
* Edit, delete or run a record action from the menu of a card,
* Refresh the grid and see the time of the last refresh.

## Mobile Grid - Phone Setup

The Mobile Grid is displayed only when the page is used on the phone. To make it available to your users:

1. Assign the **GridMate User** permission set to the users.
2. In the Lightning App Builder, click **Save**, then **Activation**.
3. Assign the page as the **Org Default**, an **App Default**, or to an **App, Record Type and Profile**, and select the **Phone** form factor.
4. For an App page, add its tab to the **Mobile Navigation** of your Lightning app (Setup → **Mobile App** → **Salesforce Navigation**) and make sure the app supports the **Phone** form factor.
5. Open the record from the Salesforce mobile app to see the Mobile Grid.

{% hint style="info" %}
A page can use a separate layout for the phone. To keep the desktop page unchanged, create a dedicated record page for the phone, for example **Mobile Account Page** with a single column, and assign it to the **Phone** form factor only.
{% endhint %}

Below is a step by step tutorial to configure the **GM - Mobile Grid** component.

{% embed url="<https://youtu.be/-0qb9d11ZKc>" %}

## Next steps

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>User Grid</strong></td><td>Create and configure your own grids from the Config Wiz.</td><td><a href="https://docs.gridmate.io/product-tour/grids/user-grid.md">User Grid</a></td></tr><tr><td><strong>Grid - Mass/Record Actions</strong></td><td>Add quick actions, flows and navigation to the cards.</td><td><a href="https://docs.gridmate.io/advanced-guides/grid-actions/actions-library.md">Grid - Mass/Record Actions</a></td></tr><tr><td><strong>GM - Mobile Grid</strong></td><td>Every property of the component.</td><td><a href="https://docs.gridmate.io/package-reference/components-library/grids/gm-mobile-grid.md">GM - Mobile Grid</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.gridmate.io/product-tour/grids/mobile-grid.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
