> 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/user-grid/create-and-edit-records.md). Agents can also search and read this documentation through its [MCP server](https://docs.gridmate.io/~gitbook/mcp).

# Create & Edit Records

Set up the form for new records and choose who can create, edit and delete records from a User Grid.

A **record** is one row of the grid: one opportunity, one account, one case. This page covers how users create, edit and delete records from the grid.

{% hint style="info" %}
The settings below are in the **Config Wiz**: click the gear icon on the grid, then click **Advanced**.
{% endhint %}

## Which setting do I need?

| I want to…                                                | Use                               |
| --------------------------------------------------------- | --------------------------------- |
| Fill in fields automatically when a user creates a record | [Default Values](#default-values) |
| Remove fields from the new record form                    | [Hidden Fields](#hidden-fields)   |
| Allow or block create, edit and delete on this grid       | [Object Access](#object-access)   |

## Default Values

**Default Values** fill in fields automatically when a user creates a record from the grid. This reduces the risk of errors when creating a new record.

1. Open the **Default Values** section.
2. Select the fields. In the demo: **Account ID**, **Amount** and **Stage**.
3. Set the value of each field, as an expression or as a lookup.
4. Click **Save**.

The new record form then shows only the fields that have a default value.

The video below sets three default values on an Opportunity grid and creates a record.

{% embed url="<https://youtu.be/bJVAi-KGXIA>" %}
Default Values
{% endembed %}

{% hint style="info" %}
To use the page layout when creating a new record, check ***"Use the page layout when creating a new record"*** checkbox.
{% endhint %}

## Hidden Fields

**Hidden Fields** removes fields from the form when a user creates a new record.

1. Open the **Hidden Fields** section.
2. Select the fields to hide.
3. Click **Save**.

The new record form shows all the fields except the hidden ones. Fields with a default value stay visible.

The video below hides a field and creates a record.

{% embed url="<https://youtu.be/zkvYPeirVL0>" %}
Hidden Fields
{% endembed %}

## Object Access

**Object Access** switches the create, edit and delete actions below **on** or **off** for this grid:

* Mass Create
* Mass Clone
* Mass Update
* Mass Delete
* Modal Create
* Modal Edit
* Inline Create
* Inline Edit
* Inline Delete

By default, each action follows what the logged user is allowed to do in Salesforce (create, read, edit and delete access). This default is shown as **Inherited**.

1. Open the **Object Access** section.
2. Click **Enable** or **Disable** on an action to override it for this grid.
3. Click **Save**.

The video below enables every action and shows each of them on the grid.

{% embed url="<https://youtu.be/BSgBNZ48gws>" %}
Object Access
{% endembed %}

## 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>Actions</strong></td><td>Add actions on one record and on selected records.</td><td><a href="https://docs.gridmate.io/product-tour/grids/user-grid/actions.md">Actions</a></td></tr><tr><td><strong>DataGrid Settings</strong></td><td>Switch grid features on or off for the org, a profile or a user.</td><td><a href="https://docs.gridmate.io/package-reference/grids-settings.md">DataGrid Settings</a></td></tr><tr><td><strong>GM - User Grid</strong></td><td>Every property of the component.</td><td><a href="https://docs.gridmate.io/package-reference/components-library/grids/gm-user-grid.md">GM - User 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/user-grid/create-and-edit-records.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.
