Locking company fields
Show company fields that your platform manages as read-only in Check Components.
If your platform is the source of truth for a company's legal name, trade name, legal address, phone number, or federal EIN, you can lock those fields in the Components you embed. A locked field shows its value, but the user can't edit it in the Component. To lock fields, pass field_permissions in the request body when you create the link.
These Components apply field_permissions:
- Company details
- Company business details
- Company full service setup submission
- Company tax setup, which renders the federal EIN
- Company onboard, in its company details and tax setup steps
Create a link with locked fields
To lock a field, set its key to read in the field_permissions map. This request creates a Company details link with all five fields locked:
curl -X POST https://api.checkhq.com/companies/{company_id}/components/details \
-H "Authorization: Bearer {api_key}" \
-H "Content-Type: application/json" \
-d '{
"signer_name": "Jane Doe",
"signer_title": "Owner",
"email": "[email protected]",
"field_permissions": {
"company:legal_name": "read",
"company:trade_name": "read",
"company:address": "read",
"company:phone": "read",
"company_tax_param:federal_ein": "read"
}
}'Check writes the locks into the link it returns, as a field_permissions query parameter. Open that link as you would any other. Appearance settings and the SDK work the same way, as described in Customizing Components.
A Component ignores keys for fields it doesn't render. Company details has no federal EIN field, so it ignores company_tax_param:federal_ein in the example. You can send the same map on every link you create for a company.
Lockable fields
| Key | Field |
|---|---|
company:legal_name | The company's legal name. |
company:trade_name | The company's trade name and its no-trade-name checkbox. |
company:address | The company's legal address. Workplace addresses aren't affected. |
company:phone | The company's phone number. |
company_tax_param:federal_ein | The company's federal EIN in tax setup. |
Each key takes one of these access levels:
| Level | Effect |
|---|---|
read | The field is shown but not editable, even when the company has no value for it. |
read_if_present | The field is locked if the company has a value for it when you create the link. Otherwise, it's editable. |
read_write | The field is editable. This is the default. |
A key you leave out of the map stays editable. The request returns a 400 error if the map contains a key that isn't in the lockable fields table, or a level other than read, read_if_present, or read_write.
Lock a field only when it has a value
Set a key to read_if_present to lock a field only when the company already has a value for it. This map locks the legal name, legal address, and federal EIN if the company has them, and leaves the rest editable:
{
"company:legal_name": "read_if_present",
"company:address": "read_if_present",
"company_tax_param:federal_ein": "read_if_present"
}When you create the link, Check reads the company's values for each read_if_present key:
| Key | Has a value when |
|---|---|
company:legal_name | The legal name isn't empty. |
company:trade_name | The trade name isn't empty. |
company:address | Line 1, city, state, postal code, and country are all set. Line 2 can be empty. |
company:phone | The phone number isn't empty. |
company_tax_param:federal_ein | The company has a federal EIN. An EIN marked as applied for counts as empty. |
A field with a value is locked exactly as if you had set it to read. An empty field is editable. The Component validates it as usual, so a required field still has to be filled in, and it saves the value the user enters to the company.
Check decides which fields to lock once, when it creates the link, and the link keeps those locks:
- If the user fills in an empty field, it's locked on the next link you create, not on the current one.
- If the company gets a value after you create the link, for example from an API request, that link still leaves the field editable.
The link records the result, not the levels you sent. Its field_permissions query parameter lists each locked field as read and leaves out the fields that stayed editable. If no field is locked, the link has no field_permissions parameter.
What the user sees
A locked field is disabled. When the user hovers over it, a tooltip reads "This field is not editable."
By default, a disabled field has a light gray fill and renders at half opacity. To make locked fields stand out more, for example with a darker fill and full-opacity text, set the disabled-field tokens in the token map. This map gives them a darker gray fill and gray text at full opacity:
background:#ffffff;foreground:#000000;input-disabled:#e5e5e5;input-disabled-foreground:#737373;input-disabled-opacity:1The map sets background and foreground because every color token requires that pair. The fill and its text must reach 3:1. For how to pass the map and the rest of its rules, see Theming with a token map.
The Component also changes how it saves and navigates:
- When the user saves a form, the Component leaves locked fields out of the update it sends to Check.
- On the business name and business address screens, if every field on the screen is locked, Continue moves to the next screen without saving.
- On the business contact details screen, a locked phone number doesn't block Continue. The screen still validates and saves the email and website.
- In a review section where every field is locked, the edit button is hidden.
- A locked federal EIN shows in read mode, and its Edit button is disabled.
A field locked with read stays locked when the company has no value for it. It shows as empty, and the user can't fill it in. For the federal EIN, the tax setup Component doesn't let the user continue past the federal page until the EIN has a value. If the company might not have a value yet, use read_if_present instead.
Locks apply to the Component UI only
field_permissions controls what the Component lets the user edit. It isn't access control in the Check API:
- The Check API doesn't reject writes to a locked field. A request made with your API key, or by any other client with access to the company, can still change it.
- The lock travels as a query parameter on the link. Anyone who holds the link can remove that parameter before opening it, and the Component then shows the fields as editable.
Keep your own check that Check's values match your records. To catch a change to the legal name, trade name, legal address, or phone number, subscribe to company events. To check the federal EIN, read it with List company tax parameters.
Updated 7 days ago

