# Custom form is always using MY details and not the user I'm testing with

**URL:** https://community.glideapps.com/t/custom-form-is-always-using-my-details-and-not-the-user-im-testing-with/49882
**Category:** Ask for Help
**Created:** [September 22, 2022, 5:02am UTC](https://community.glideapps.com/t/custom-form-is-always-using-my-details-and-not-the-user-im-testing-with/49882 "2022-09-22T05:02:24Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Gary\_Willmott](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_willmott/32/837_2.png) [@Gary\_Willmott](https://community.glideapps.com/u/Gary_Willmott)
#### Post date: [September 22, 2022, 5:02am UTC](https://community.glideapps.com/t/custom-form-is-always-using-my-details-and-not-the-user-im-testing-with/49882/1 "2022-09-22T05:02:24Z")

</div>

I’m trying to make a form where the user updates their own details, however it’s always updates

I created a custom page, with fields and a button action that “sets column values” of user profile row  
 ![Screenshot 2022-09-22 at 06.46.11](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/e/de1cc5644d18851b8ef98a61ec5d3035e5dcdd2e.png)

however it’s doing the following:

- The fields are always using MY details as default even when I switch user (both are pulling in “Gary Willmott TESTHi v9” as nam)

 ![Screenshot 2022-09-22 at 06.55.52](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/1/b1b87ecc53c952aefa545419288d373cac7fc5dd.png)  
 ![Screenshot 2022-09-22 at 06.55.14](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/a/9ae9218257746775dcdf69b6883f75363841fccc.png)

It’s updating both rows? Mine and the user?  
 ![Screenshot 2022-09-22 at 07.00.42](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/f/6fa539803bc68fac34ee8dd13c09425aa50f9e56.png)

---

<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: [September 22, 2022, 5:52am UTC](https://community.glideapps.com/t/custom-form-is-always-using-my-details-and-not-the-user-im-testing-with/49882/2 "2022-09-22T05:52:31Z")

</div>

Sounds like your “form” is pointing to the first row in the table. What you are actually doing is updating the values in the first row in real time as you type, and then your button is taking those values and setting them in the signed in user’s row. You could just filter the screen to the signed in user and get rid of the button. That would be the simplest solution, but a user would not be able to cancel out of those changes if they chose.

If you are trying to create a form feel, where a user can make changes, but cancel those changes, then it’s more involved. In that case, you should be using separate user specific columns to temporarily hold the values. That’s because every user will be updating the same row. You would then have to write the normal values to those user specific values before showing the screen. Then a user can edit those user specific values. If they choose to save their changes, then the Save/Submit button would take those temporary user specific values and write them to the normal columns in the signed in user’s user profile row.

---

<div class="post-metadata">

### Author: ![Gary\_Willmott](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_willmott/32/837_2.png) [@Gary\_Willmott](https://community.glideapps.com/u/Gary_Willmott)
#### Post date: [September 22, 2022, 6:42am UTC](https://community.glideapps.com/t/custom-form-is-always-using-my-details-and-not-the-user-im-testing-with/49882/3 "2022-09-22T06:42:14Z")

</div>

Wow this feels so complicated for updating details

Is there a sample or tutorial on this?

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [September 22, 2022, 6:47am UTC](https://community.glideapps.com/t/custom-form-is-always-using-my-details-and-not-the-user-im-testing-with/49882/4 "2022-09-22T06:47:08Z")

</div>

Do you have a copy of my custom forms concept App?

> [@How do I create a custom form?](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014):
>
> I’m just dropping this here so I have something to refer people to when they ask. This is a simple concept app (copyable), that demonstrates the following techniques: Building custom forms for adding and editing list items (as an alternative to the native forms provided by Glide) Preventing duplicate new entries using [User Specific Columns](https://docs.glideapps.com/all/reference/data-editor/user-specific-columns) and [Relations](https://docs.glideapps.com/all/reference/data-editor/computed-columns/relation-column) Enforcing mandatory input items The use of visibility conditions and user specific booleans to control user flow There is nothing particula…

You can study that to see how it works.

I’m not aware of any video tutorial, maybe I’ll make one and add it to that post when I can find some time.

---

<div class="post-metadata">

### Author: ![Gary\_Willmott](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_willmott/32/837_2.png) [@Gary\_Willmott](https://community.glideapps.com/u/Gary_Willmott)
#### Post date: [September 22, 2022, 7:47am UTC](https://community.glideapps.com/t/custom-form-is-always-using-my-details-and-not-the-user-im-testing-with/49882/5 "2022-09-22T07:47:42Z")

</div>

Hi Darren,

I tried sample Multi-Step Form, which uses user specific columns and relations, however it looks like it adds rows

I went through [this](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014/18) thread and it looks like it’s going in circles? I don’t understand why such simple functionality is so complicated?

All I’m wanting todo is get the user to update specific data about themselves, without going through the loop of having to edit their profile?

Is there no sample template around that can demonstrate this?

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [September 22, 2022, 7:51am UTC](https://community.glideapps.com/t/custom-form-is-always-using-my-details-and-not-the-user-im-testing-with/49882/6 "2022-09-22T07:51:15Z")

</div>

I’ll have a look at this later when I look at that other issue.

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [September 22, 2022, 10:13am UTC](https://community.glideapps.com/t/custom-form-is-always-using-my-details-and-not-the-user-im-testing-with/49882/7 "2022-09-22T10:13:40Z")

</div>

@Gary_Willmott - I just had a look at this one.

The issue is that you have no filter on that screen, so it’s attached to the first row in the User Profiles table, which happens to be yours. And because all the screen entry components are writing directly to the column values, as soon as you start changing any values they change in your row - no matter which user you are logged in/viewing as.

The onSubmit action that you have is working in the sense that _it_ is updating the correct row. But at that point it is too late because values have already been changed in the first row.

One way to fix that would be to apply Row Owners to the email column in your User Profiles table, then the screen would automatically filter to the signed-in user row. But this could introduce other complexities that you may not be ready to deal with yet.

So the next best option will be to apply a filter to that screen, as follows:

 ![Screen Shot 2022-09-22 at 6.07.21 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/9/d92d7eb511305cc799f7e7207ec72cd1835e7676.png)

With that in place, your onSubmit action becomes redundant, and is no longer required.  
I made a copy of your App and applied the change, so you can see and test it for yourself there.

Worth noting that @Jeff_Hager’s initial diagnosis was spot on:

> [@Jeff\_Hager](#):
>
> Sounds like your “form” is pointing to the first row in the table. What you are actually doing is updating the values in the first row in real time as you type, and then your button is taking those values and setting them in the signed in user’s row. You could just filter the screen to the signed in user and get rid of the button. That would be the simplest solution, but a user would not be able to cancel out of those changes if they chose.

As were his additional comments:

> [@Jeff\_Hager](#):
>
> If you are trying to create a form feel, where a user can make changes, but cancel those changes, then it’s more involved. In that case, you should be using separate user specific columns to temporarily hold the values. That’s because every user will be updating the same row. You would then have to write the normal values to those user specific values before showing the screen. Then a user can edit those user specific values. If they choose to save their changes, then the Save/Submit button would take those temporary user specific values and write them to the normal columns in the signed in user’s user profile row.

---

<div class="post-metadata">

### Author: ![Gary\_Willmott](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_willmott/32/837_2.png) [@Gary\_Willmott](https://community.glideapps.com/u/Gary_Willmott)
#### Post date: [September 22, 2022, 10:34am UTC](https://community.glideapps.com/t/custom-form-is-always-using-my-details-and-not-the-user-im-testing-with/49882/8 "2022-09-22T10:34:15Z")

</div>

> [@Jeff\_Hager](#):
>
> Sounds like your “form” is pointing to the first row in the table. What you are actually doing is updating the values in the first row in real time as you type, and then your button is taking those values and setting them in the signed in user’s row. You could just filter the screen to the signed in user and get rid of the button. That would be the simplest solution, but a user would not be able to cancel out of those changes if they chose.

Thanks for taking the time on this @Darren_Murphy  
I miss read @Jeff_Hager 's answer and this makes complete sense now, I guess I just need to see it visually

---

<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: [September 23, 2022, 10:35am UTC](https://community.glideapps.com/t/custom-form-is-always-using-my-details-and-not-the-user-im-testing-with/49882/9 "2022-09-23T10:35:13Z")

</div>

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