# Single Value shows different actual value in Data Editor

**URL:** <https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192>\
**Category:** Ask for Help\
**Created:** [September 26, 2022, 9:38am UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192 "2022-09-26T09:38:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattJP](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattjp/32/47532_2.png) [@MattJP](https://community.glideapps.com/u/MattJP)\
**Post date:** [September 26, 2022, 9:38am UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/1 "2022-09-26T09:38:40Z")

</div>

My aim was to create a Single Value set to a random Row Id from another table. This would then be used to present a random quote at the top of an Add Form.

I expected to see something like this screen grab from [this video](https://youtu.be/h31dASRgd1k?t=61):  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/2/42e282bdb81160733d8e1db6944433e1ed6b5462.png)

Instead of a single value for each row I see a different value for each row as follows:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/3/d331a5bfb09187c8343c369b765c16c191c2cebb.png)  
I am concerned about the implied overhead (a random selection from a large table for every row in another large table).

Any advice as to why I am seeing a different value for each row?

I am aware that what I am trying to do won’t actually work because I can’t seem to show any calculated rows in an Add Form anyway. So suggestions on how to show a random quote as a ‘label’ at the top of an Add Form would also be welcome. (Please bear with me as I am a novice with Glide so I’ve probably missed something obvious. I have searched the forums and documentation.)

Thanks in advance, Matt

---

<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 26, 2022, 9:55am UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/2 "2022-09-26T09:55:34Z")

</div>

> [@MattJP](#):
>
> My aim was to create a Single Value set to a random Row Id from another table. This would then be used to present a random quote at the top of an Add Form.

Just out of curiosity, why not use the single value to pull the random quote directly?

> [@MattJP](#):
>
> I am concerned about the implied overhead (a random selection from a large table for every row in another large table).

How big is the table? Unless you’re talking about tens of thousands of rows, I don’t believe that would be an issue. Even then, it’s probably not a problem.

> [@MattJP](#):
>
> Any advice as to why I am seeing a different value for each row?

That appears to be how it works. To be honest, I don’t use Single Value-\>Random that often, so I don’t recall if that is correct behaviour, or a bug.

> [@MattJP](#):
>
> I am aware that what I am trying to do won’t actually work because I can’t seem to show any calculated rows in an Add Form anyway.

Yes, you should be able to, as long as the column exists in the table the form is directed at. Just add any sort of text component and point it at your random quote. (I just tested this to be certain, and it works).

---

<div class="post-metadata">

**Author:** ![MattJP](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattjp/32/47532_2.png) [@MattJP](https://community.glideapps.com/u/MattJP)\
**Post date:** [September 26, 2022, 10:05am UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/3 "2022-09-26T10:05:31Z")

</div>

> [@Darren\_Murphy](#):
>
> Just out of curiosity, why not use the single value to pull the random quote directly?

I wanted to pull some other data as well

> [@Darren\_Murphy](#):
>
> How big is the table?

Not too big but it makes me uncomfortable to get random O(n) x O(m) when all I need is random O(n). It makes me shiver 😉

> [@Darren\_Murphy](#):
>
> I don’t recall if that is correct behaviour, or a bug

Starting to look like a bug to me but like you say, maybe it doesn’t matter.

> [@Darren\_Murphy](#):
>
> as long as the column exists in the table the form is directed at. Just add any sort of text component and point it at your random quote

I must be doing something stupid, none of my derived columns appear in the Add Form as field option. I’ll keep playing around.

Thanks v. much @Darren_Murphy

---

<div class="post-metadata">

**Author:** ![MattJP](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattjp/32/47532_2.png) [@MattJP](https://community.glideapps.com/u/MattJP)\
**Post date:** [September 26, 2022, 12:20pm UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/4 "2022-09-26T12:20:15Z")

</div>

> [@MattJP](#):
>
> > [@Darren\_Murphy](#):
> >
> > as long as the column exists in the table the form is directed at. Just add any sort of text component and point it at your random quote
> 
> I must be doing something stupid, none of my derived columns appear in the Add Form as field option. I’ll keep playing around.

For me, none of my calculated columns are visible in the text entry / General / Column drop down. Why cannot I set Text Entry to show Quote column?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/5/7580a31b7ab4f50a702e52f4450479cb2da5a6c4.png)

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/1/3176ede625deca629644f928614623b46048c382.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/1/f12857f580b1add3e119a00486a9d2cb642e9692.png)

I’m sure I’m missing something obvious and so I’ve headed off to the new Glide Uni 🎓

---

<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 26, 2022, 12:26pm UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/5 "2022-09-26T12:26:03Z")

</div>

> [@MattJP](#):
>
> I’m sure I’m missing something obvious and so I’ve headed off to the new Glide Uni

Yeah, I think the something obvious that you’re missing is that you are using a Text _Entry_ component.  
Try a normal text component 😉

 ![Screen Shot 2022-09-26 at 8.23.30 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/a/eaee40434a85e76b0dda3589b762c245aebe88b0.png)

---

<div class="post-metadata">

**Author:** ![MattJP](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattjp/32/47532_2.png) [@MattJP](https://community.glideapps.com/u/MattJP)\
**Post date:** [September 26, 2022, 12:31pm UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/6 "2022-09-26T12:31:14Z")

</div>

D’Oh! Thanks.

I can set a value from a column on an Edit Form but the columns do not appear on an Add Form. I think I spotted this before but I’m getting confused:

> [@MattJP](#):
>
> I am aware that what I am trying to do won’t actually work because I can’t seem to show any calculated rows in an Add Form anyway

---

<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 26, 2022, 12:33pm UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/7 "2022-09-26T12:33:50Z")

</div>

Nope.

The test I did was with an Add Form…

 ![Screen Shot 2022-09-26 at 8.33.01 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/d/4dfbd995f4e07c019e05dcdd0785f511c683719e.png)

---

<div class="post-metadata">

**Author:** ![MattJP](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattjp/32/47532_2.png) [@MattJP](https://community.glideapps.com/u/MattJP)\
**Post date:** [September 26, 2022, 12:37pm UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/8 "2022-09-26T12:37:46Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/5/157fb2f13dbd27a3625925577c88ee62d0c89f49.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/6/4669e7a3ca287b5bc8b1e116c85218dba4fde3ff.png)

I gotta go back to school because this is over my head but thanks for being so helpful @Darren_Murphy

---

<div class="post-metadata">

**Author:** ![MattJP](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattjp/32/47532_2.png) [@MattJP](https://community.glideapps.com/u/MattJP)\
**Post date:** [September 26, 2022, 12:41pm UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/9 "2022-09-26T12:41:13Z")

</div>

A trivial app displays the same characteristics with Random Single Value, displaying multiple values on different rows. I guess I misunderstood the semantics of single value.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/a/2a2b4f67c77135f1e850c31e3dfdc7a4bfe480a2.png)

---

<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 26, 2022, 12:43pm UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/10 "2022-09-26T12:43:01Z")

</div>

> [@MattJP](#):
>
> I gotta go back to school because this is over my head but thanks for being so helpful

Are you sure that your Single Value column is in the same table that your Form will be adding its row to?

---

<div class="post-metadata">

**Author:** ![MattJP](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattjp/32/47532_2.png) [@MattJP](https://community.glideapps.com/u/MattJP)\
**Post date:** [September 26, 2022, 12:46pm UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/11 "2022-09-26T12:46:06Z")

</div>

Yes and I’ve just been able to add it as a Text Edit component in an Edit Form. Are you sure you were looking at an Add Form? Your crumbs say Form while mine say Add Form, why would that be do you think?

---

<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 26, 2022, 12:49pm UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/12 "2022-09-26T12:49:54Z")

</div>

Can you tell me how you got to your Form Screen, so I can replicate exactly what you have?

With my test, I used a Form Button:

 ![Screen Shot 2022-09-26 at 8.48.47 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/6/4647d3e85ce836c3d9fc02cfc05c028244327e84.png)

Also, are working with an App, or a Pages Project?

---

<div class="post-metadata">

**Author:** ![MattJP](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattjp/32/47532_2.png) [@MattJP](https://community.glideapps.com/u/MattJP)\
**Post date:** [September 26, 2022, 12:55pm UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/13 "2022-09-26T12:55:30Z")

</div>

Working with an App and the default Add Form that is accessed from the list view of a table. I did not create a ‘custom’ form like your sample app shows. So I am guessing that adding calculated columns in that default Add Form is disabled and that you were using a custom form (maybe it’s an option set someplace but I did not set it).

---

<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 26, 2022, 1:02pm UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/14 "2022-09-26T13:02:03Z")

</div>

No, I wasn’t using a custom form. Just a slightly different Add Form.

Anyway, I just retested using the same method as you, and yes I get the same behaviour as you.

What you could do is:

- Switch from a List Layout to a Details layout
- Add an Inline List component
- Add a Form Button (as per my earlier screen shot)
- And you should be able to use your random quote on the resultant Form Screen

---

<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 26, 2022, 1:04pm UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/15 "2022-09-26T13:04:13Z")

</div>

Add Form is different from a Form. An Add Form is not connected to a row, where a Form IS connected to an underlying parent row. At most you may be able to add text from the user profile table, but that would be it (not even sure if that’s possible either).

@Darren_Murphy’s last suggestion would be the way to go.

---

<div class="post-metadata">

**Author:** ![MattJP](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattjp/32/47532_2.png) [@MattJP](https://community.glideapps.com/u/MattJP)\
**Post date:** [September 26, 2022, 1:08pm UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/16 "2022-09-26T13:08:55Z")

</div>

Yes, you can add fields from user profile. A calculated field based on another table is an independent variable, it does not require a parent but I now understand the restriction and will learn more about creating custom data entry fields.

I also now understand that the original issue is my misundersting of Single Value semantics where I thought it was a singleton relative to table rows and, clearly, it is calculated once per row. Not sure why I would use a Single Value for that random case but at least I understand it better.

Many thanks to @Jeff_Hager and especially to @Darren_Murphy for being so patient.

---

<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:** [September 27, 2022, 12:26am UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/17 "2022-09-27T00:26:40Z")

</div>

> [@Darren\_Murphy](#):
>
> That appears to be how it works. To be honest, I don’t use Single Value-\>Random that often, so I don’t recall if that is correct behaviour, or a bug.

Yes, it has always worked like that and I have used this quite a few times when I don’t need to present different people with the same random thing.

---

<div class="post-metadata">

**Author:** ![MattJP](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattjp/32/47532_2.png) [@MattJP](https://community.glideapps.com/u/MattJP)\
**Post date:** [September 27, 2022, 10:39am UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/18 "2022-09-27T10:39:38Z")

</div>

Thanks @ThinhDinh, I’m still working through the scenario to work out how often the values are recalculated to see if I will continue to use this feature or try something else.

Not that it matters but It seems to me that the way _random_ works does not gel with the [description and the video](https://www.glideapps.com/docs/reference/computed-columns/single-value-column) in the Glide Docs. An inconsistency like this might require a software change but it might just as easily be resolved by updating the documentation.

---

<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:** [September 28, 2022, 12:28am UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/19 "2022-09-28T00:28:44Z")

</div>

That video is from the earliest days of Glide. They have updated the usage of the single value column a lot more over the years, so I agree that video needs to be updated, especially for the “random” usage.

---

<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 29, 2022, 12:29am UTC](https://community.glideapps.com/t/single-value-shows-different-actual-value-in-data-editor/50192/20 "2022-09-29T00:29:03Z")

</div>

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