# Edit form

**URL:** https://community.glideapps.com/t/edit-form/34001
**Category:** Ask for Help
**Created:** [November 4, 2021, 9:11am UTC](https://community.glideapps.com/t/edit-form/34001 "2021-11-04T09:11:37Z")
**Posts on this page:** 10
**Page:** 2

<div class="post-metadata">

### Author: ![Leonfort2](https://avatars.discourse-cdn.com/v4/letter/l/c37758/32.png) [@Leonfort2](https://community.glideapps.com/u/Leonfort2)
#### Post date: [November 5, 2021, 5:35pm UTC](https://community.glideapps.com/t/edit-form/34001/21 "2021-11-05T17:35:21Z")

</div>

Hello Jeff  
there you are an extract of app.

> **[leonfort's Project](https://accurate-trick-0267.glideapp.io/)**

What I search to do  
When the member use “Accès Direct” he don’t have to edit  
When the accès is by Administrateur, this admin can edit

Problem Glide  
When the profile of member is displayed by administrateurs  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/e/be90910464494113e50992ac51c1dbf313ecd05b.png)  
is the same that when is displayed by Accès direct of theMember  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/9/e98ce6d0321426fd4400cd77fea8bb2428467674.png)

The rules are the same, so how to do the difference ?

---

<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: [November 5, 2021, 6:10pm UTC](https://community.glideapps.com/t/edit-form/34001/22 "2021-11-05T18:10:14Z")

</div>

Is there any chance that you can turn on copying so I can copy the app and see the internals?

Just looking at it quickly, it looks like you don’t have any conditions set for the edit option, so anybody can edit. Also, I see that your two administrators already have a code entered, so that tells me that it might not be a user specific column that you are using to store the entered code.

---

<div class="post-metadata">

### Author: ![Leonfort2](https://avatars.discourse-cdn.com/v4/letter/l/c37758/32.png) [@Leonfort2](https://community.glideapps.com/u/Leonfort2)
#### Post date: [November 5, 2021, 6:50pm UTC](https://community.glideapps.com/t/edit-form/34001/23 "2021-11-05T18:50:07Z")

</div>

I am sorry, I forgot, now you can copy app

---

<div class="post-metadata">

### Author: ![Leonfort2](https://avatars.discourse-cdn.com/v4/letter/l/c37758/32.png) [@Leonfort2](https://community.glideapps.com/u/Leonfort2)
#### Post date: [November 5, 2021, 6:53pm UTC](https://community.glideapps.com/t/edit-form/34001/24 "2021-11-05T18:53:09Z")

</div>

Try to code in Edit rules this  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/d/3d0ac52cbe2dc3044341f3a3d0d14e8cc6a57b54.png)  
And then the Admin list a member, he can edit him

---

<div class="post-metadata">

### Author: ![Leonfort2](https://avatars.discourse-cdn.com/v4/letter/l/c37758/32.png) [@Leonfort2](https://community.glideapps.com/u/Leonfort2)
#### Post date: [November 5, 2021, 7:05pm UTC](https://community.glideapps.com/t/edit-form/34001/25 "2021-11-05T19:05:26Z")

</div>

cannot

---

<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: [November 5, 2021, 11:50pm UTC](https://community.glideapps.com/t/edit-form/34001/26 "2021-11-05T23:50:35Z")

</div>

Sorry for the delay. I finally got a chance to take a quick look at this. I made some minor changes.

- First, I added a new column to hold the entered code. I made it user specific. Since it’s user specific, it only lives in glide. It will hold a different value for each user’s device, and since you are not signing into the app, it will clear itself every time the app is completely closed. The new column is named `us-Code saisi`. I didn’t delete your old `Code saisi` column, but I did rename it as `Delete This - Code saisi` since it should be deleted.
- Second, I needed to add some additional columns to get the edit condition to work.
  - First I created an `if-CodeMatch` IF column. This checks if the code that the user entered matches the code that is on their user record.
  - Next I created a `tmp-User-Club-Admin-CodeMatch` Template column. This joins the club name column, the responsable column, and the IF column, that I created above, all together.
  - Next I created a `tmp-Club-Admin-CodeMatch` column. This joins the club name column, the word ‘Responsable’, and the word ‘true’.
  - Next I created a `rel-AdminWithCorrectCode` Relation column. This takes the `tmp-Club-Admin-CodeMatch` with the hardcoded ‘Responsable’ and ‘true’ words and links it to the `tmp-User-Club-Admin-CodeMatch` that contains each user’s results from the Responsable and if-Codematch column values. This is a single relation, so it will find the first Admin row in that same club that has entered the correct code.
  - Finally, I added an `if-UserIsAdmin` IF column that just checks if the relation is empty and returns true or false. This is what I finally used for the edit condition.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/c/9cdd098329fa5965b8c5483197e0ad42c70d17bd.png)

I probably would have set things up a little differently if I were doing the whole thing myself, but I wanted to keep as much the same as you have it now. Take a look and see if it works how you expect it to. Once an admin enters the correct code, then only they should be able to edit the other members in their club. Another member would have to know the admin code to be able to edit other members. This should work properly if you have multiple Admins in the same club as well. Also, whenever you refresh your browser, it will clear out that user specific code column.

I should also mention that since your app is public and you don’t use row owners to secure any data, it is possible for someone with technical knowledge to be able to look at all of the underlying data and find out anybody’s code (including the admins) and then be able to edit other users. If none of the information needs to be private and you trust your users then you should be fine with this current setup. I just wanted to make sure that you were aware.

Let me know what you think or if I missed anything.

> **[leonfort's Project](https://excellent-button-8721.glideapp.io/)**

---

<div class="post-metadata">

### Author: ![Leonfort2](https://avatars.discourse-cdn.com/v4/letter/l/c37758/32.png) [@Leonfort2](https://community.glideapps.com/u/Leonfort2)
#### Post date: [November 6, 2021, 8:30am UTC](https://community.glideapps.com/t/edit-form/34001/27 "2021-11-06T08:30:56Z")

</div>

Hello Jeff : Great job.  
Thank you so much. My goal is to make the application very easy to use. Users do not want to enter codes or connect to e-mail to get a pin, etc. In practice, this application replaces a paper sticker with a digital sticker and nothing else. The administrator must be able to change the validity date of his members, and there is nothing confidential. But like you said, there can be some people having fun destroying other people’s apps. Can row owner can better protect? I have to explore this.  
Thanks again Jeff, I have a lot of progress to make in my knowledge of Glide.

---

<div class="post-metadata">

### Author: ![Leonfort2](https://avatars.discourse-cdn.com/v4/letter/l/c37758/32.png) [@Leonfort2](https://community.glideapps.com/u/Leonfort2)
#### Post date: [November 6, 2021, 12:59pm UTC](https://community.glideapps.com/t/edit-form/34001/28 "2021-11-06T12:59:46Z")

</div>

Hello,  
We can are a code on submit action, but I dont find if there are an action code on return.  
Any Idea ?  
Thanks

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [November 7, 2021, 12:59pm UTC](https://community.glideapps.com/t/edit-form/34001/29 "2021-11-07T12:59:53Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<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: [November 9, 2021, 4:21am UTC](https://community.glideapps.com/t/edit-form/34001/30 "2021-11-09T04:21:16Z")

</div>

I don’t think I understand the question. Can you rephrase it?

[Previous page](https://community.glideapps.com/t/edit-form/34001.md?page=1)
