# Lock field after edit

**URL:** <https://community.glideapps.com/t/lock-field-after-edit/19989>\
**Category:** Ask for Help\
**Created:** [December 17, 2020, 1:16pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989 "2020-12-17T13:16:21Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![gp9293](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gp9293/32/16743_2.png) [@gp9293](https://community.glideapps.com/u/gp9293)\
**Post date:** [December 17, 2020, 1:16pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989/1 "2020-12-17T13:16:21Z")

</div>

Is there a way to lock a field after the user has entered data? Example, User B needs to check a box to agree with User A. While I want User A to see that the box is checked or unchecked, I do not want User A to be able to edit the box. Any advice is appreciated.

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [December 17, 2020, 1:52pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989/2 "2020-12-17T13:52:41Z")

</div>

Hola @gp9293,

You could show either a text component or a table to User A with the info of the checkbox.

---

<div class="post-metadata">

**Author:** ![gp9293](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gp9293/32/16743_2.png) [@gp9293](https://community.glideapps.com/u/gp9293)\
**Post date:** [December 17, 2020, 7:22pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989/3 "2020-12-17T19:22:29Z")

</div>

Understand and appreciate your answer, I think it works. How about if I only want to show the checkbox to User B and then all User A will ever see is the text field you recommend with true/false in it. Thank you.

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [December 17, 2020, 7:25pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989/4 "2020-12-17T19:25:13Z")

</div>

Yes, that would work.  
Remember to use visibility conditions so you show user B and A what they need to see.

---

<div class="post-metadata">

**Author:** ![gp9293](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gp9293/32/16743_2.png) [@gp9293](https://community.glideapps.com/u/gp9293)\
**Post date:** [December 17, 2020, 7:28pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989/5 "2020-12-17T19:28:19Z")

</div>

Getting stuck on the visibility conditions, which I understand. Ideally, the check box would be visible only when User B is the logged in user, but that option is not available. Trying to think about how else this can be accomplished.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [December 17, 2020, 7:30pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989/6 "2020-12-17T19:30:55Z")

</div>

What makes user A and user B different in your setup? What determines when one user has authority to change a value and the other user to only view the value?

---

<div class="post-metadata">

**Author:** ![gp9293](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gp9293/32/16743_2.png) [@gp9293](https://community.glideapps.com/u/gp9293)\
**Post date:** [December 17, 2020, 7:32pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989/7 "2020-12-17T19:32:32Z")

</div>

User A dictates the deal terms. the User B can Accept the terms or Reject the terms. So, it’s ok for User A to see the status of the Accept/Reject, but User A cannot edit such. Only User B can “check the box.”

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [December 17, 2020, 7:35pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989/8 "2020-12-17T19:35:18Z")

</div>

What @Jeff_Hager is asking is how Glide knows who is User A and/or B. Do you have an extra column that specifies who is who?

---

<div class="post-metadata">

**Author:** ![gp9293](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gp9293/32/16743_2.png) [@gp9293](https://community.glideapps.com/u/gp9293)\
**Post date:** [December 17, 2020, 7:35pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989/9 "2020-12-17T19:35:55Z")

</div>

Yes. A and B are separate columns in the row.

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [December 17, 2020, 7:37pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989/10 "2020-12-17T19:37:51Z")

</div>

Do you have a screenshot?

---

<div class="post-metadata">

**Author:** ![gp9293](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gp9293/32/16743_2.png) [@gp9293](https://community.glideapps.com/u/gp9293)\
**Post date:** [December 17, 2020, 7:42pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989/11 "2020-12-17T19:42:58Z")

</div>

Not yet. But its one line essentially: Accept Bet [checkbox] and it should only be visible if the logged in user matches User B in the transaction row. If the logged in user is User A, checkbox not visible, but status of checkbox is (you gave me the way to do this earlier).

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [December 17, 2020, 7:46pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989/12 "2020-12-17T19:46:40Z")

</div>

I see.

The thing is you need to set up your profile tab in a way you have identifiers for your users. It could be a Role column in which you have User A as Contractor and User B as Something else. Then on your tab where you are creating the switch and the text you can set the visibility condition where Role\>Contractor and Then the other component where Role\>Something else.

---

<div class="post-metadata">

**Author:** ![gp9293](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gp9293/32/16743_2.png) [@gp9293](https://community.glideapps.com/u/gp9293)\
**Post date:** [December 17, 2020, 7:53pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989/13 "2020-12-17T19:53:30Z")

</div>

Profiles table has all Users in it. When a User proposes a deal, that User becomes User A in the transaction row and the User to which the deal is proposed is User B.

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [December 17, 2020, 7:56pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989/14 "2020-12-17T19:56:34Z")

</div>

How does that flow go?

How do you achieve it?

---

<div class="post-metadata">

**Author:** ![gp9293](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gp9293/32/16743_2.png) [@gp9293](https://community.glideapps.com/u/gp9293)\
**Post date:** [December 17, 2020, 8:00pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989/15 "2020-12-17T20:00:18Z")

</div>

User logs in and proposes a deal (he becomes User A in the transaction row) to one of the Users he is following (he becomes User B in the transaction row). User B needs to Accept or Reject the proposed deal.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [December 17, 2020, 8:04pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989/16 "2020-12-17T20:04:37Z")

</div>

Can you show what kinds of problems you are having with your visibility? I would think it would be as easy as setting a visibility of User B ‘is signed in user’.

---

<div class="post-metadata">

**Author:** ![gp9293](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gp9293/32/16743_2.png) [@gp9293](https://community.glideapps.com/u/gp9293)\
**Post date:** [December 17, 2020, 8:08pm UTC](https://community.glideapps.com/t/lock-field-after-edit/19989/17 "2020-12-17T20:08:06Z")

</div>

That did the trick. I was using User B’s screen name, rather than its email. Thank you guys for the effort. Solved.
