# Set table cells to read-only when a checkbox is checked

**URL:** <https://community.glideapps.com/t/set-table-cells-to-read-only-when-a-checkbox-is-checked/73047>\
**Category:** Ask for Help\
**Created:** [May 3, 2024, 5:35pm UTC](https://community.glideapps.com/t/set-table-cells-to-read-only-when-a-checkbox-is-checked/73047 "2024-05-03T17:35:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Bailey](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mark_bailey/32/15001_2.png) [@Mark\_Bailey](https://community.glideapps.com/u/Mark_Bailey)\
**Post date:** [May 3, 2024, 5:35pm UTC](https://community.glideapps.com/t/set-table-cells-to-read-only-when-a-checkbox-is-checked/73047/1 "2024-05-03T17:35:03Z")

</div>

Hi there.

I’m looking for a way to turn table cells to read only for user A when user B checks a box on that row.

I hope that’s clear enough but happy to answer any questions if not.

Can anyone help?

---

<div class="post-metadata">

**Author:** ![raajkumars](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/raajkumars/32/74046_2.png) [@raajkumars](https://community.glideapps.com/u/raajkumars)\
**Post date:** [May 3, 2024, 7:39pm UTC](https://community.glideapps.com/t/set-table-cells-to-read-only-when-a-checkbox-is-checked/73047/2 "2024-05-03T19:39:31Z")

</div>

This is can be done by adding a condition to the Add, Edit, Delete Actions. Say the column you are using for this is called “Locked”. Go to the collection element that display this table and lick the  
“Enable Advanced Actions” button Then add condition a condition that say the action should be allowed only the “Locked is not checked”

![Screenshot 2024-05-03 153603](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/6/b62c4031ae65a90ee6142d24f0cda2a91f7cfa05.png)

 ![Screenshot 2024-05-03 153252](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/e/4e0de104c3bfefc260d16d374fb3eef4f2002685.png)  
 ![Screenshot 2024-05-03 153454](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/9/09739c0f8fcfc8a8c77782827d0023578d26cdc9.png)

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [May 3, 2024, 11:21pm UTC](https://community.glideapps.com/t/set-table-cells-to-read-only-when-a-checkbox-is-checked/73047/3 "2024-05-03T23:21:35Z")

</div>

What component are you using to show the data? Are you using a Data Grid/New Table?

---

<div class="post-metadata">

**Author:** ![Mark\_Bailey](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mark_bailey/32/15001_2.png) [@Mark\_Bailey](https://community.glideapps.com/u/Mark_Bailey)\
**Post date:** [May 5, 2024, 12:20pm UTC](https://community.glideapps.com/t/set-table-cells-to-read-only-when-a-checkbox-is-checked/73047/4 "2024-05-05T12:20:27Z")

</div>

I’m using a data grid to display the content

 ![Screenshot 2024-05-05 at 13.23.36](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/d/dd7656eb3c854512b871ace9e67c48e9cbd7042d.png)

The selected cell is what User B uses to check as complete.

---

<div class="post-metadata">

**Author:** ![Mark\_Bailey](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mark_bailey/32/15001_2.png) [@Mark\_Bailey](https://community.glideapps.com/u/Mark_Bailey)\
**Post date:** [May 5, 2024, 12:36pm UTC](https://community.glideapps.com/t/set-table-cells-to-read-only-when-a-checkbox-is-checked/73047/5 "2024-05-05T12:36:32Z")

</div>

Does this work for users that are editing the data in-line?

They’re currently ticking the checkbox in the row so aren’t opening a record to edit.

 ![Screenshot 2024-05-05 at 13.23.36](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/d/dd7656eb3c854512b871ace9e67c48e9cbd7042d.png)

---

<div class="post-metadata">

**Author:** ![raajkumars](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/raajkumars/32/74046_2.png) [@raajkumars](https://community.glideapps.com/u/raajkumars)\
**Post date:** [May 5, 2024, 11:39pm UTC](https://community.glideapps.com/t/set-table-cells-to-read-only-when-a-checkbox-is-checked/73047/6 "2024-05-05T23:39:37Z")

</div>

I don’t think Data Grid supports the ability to configure the edit row action. Does this have to be Data Grid? If so, perhaps you can instead filter out the rows that cannot be edited anymore. If not you can use another collection such as table or list.

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [May 5, 2024, 11:52pm UTC](https://community.glideapps.com/t/set-table-cells-to-read-only-when-a-checkbox-is-checked/73047/7 "2024-05-05T23:52:37Z")

</div>

The Data Grid is still in development, and I’m not sure yet if the existing features will be kept or not. However, you can explore the “New Table” which has button options with its conditional settings.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [May 5, 2024, 11:59pm UTC](https://community.glideapps.com/t/set-table-cells-to-read-only-when-a-checkbox-is-checked/73047/8 "2024-05-05T23:59:23Z")

</div>

I don’t think Data Grid allows you to do something like that for now. You can allow/disable editing column-wise, not row-wise, and even that’s not tied to a configurable condition.
