# Best Practice for creating a single value Role Column?

**URL:** <https://community.glideapps.com/t/best-practice-for-creating-a-single-value-role-column/51748>\
**Category:** Ask for Help\
**Created:** [October 14, 2022, 3:52pm UTC](https://community.glideapps.com/t/best-practice-for-creating-a-single-value-role-column/51748 "2022-10-14T15:52:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Majestic\_Intern](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/majestic_intern/32/36814_2.png) [@Majestic\_Intern](https://community.glideapps.com/u/Majestic_Intern)\
**Post date:** [October 14, 2022, 3:52pm UTC](https://community.glideapps.com/t/best-practice-for-creating-a-single-value-role-column/51748/1 "2022-10-14T15:52:38Z")

</div>

I typically have users press a button which sets the row owner role to “Admin” for example.

Right now though, I am feeding Mighty Form output to google sheets, then from google sheets I used import formula to glide synced google sheet.  
What I did was go to google sheets and add a column that says “Admin” and copied it for 500 rows. It works, but feels like a quick fix that takes too many glide rows.

---

<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:** [October 14, 2022, 3:54pm UTC](https://community.glideapps.com/t/best-practice-for-creating-a-single-value-role-column/51748/2 "2022-10-14T15:54:40Z")

</div>

Did you have a question to go with this? 🤔

---

<div class="post-metadata">

**Author:** ![Majestic\_Intern](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/majestic_intern/32/36814_2.png) [@Majestic\_Intern](https://community.glideapps.com/u/Majestic_Intern)\
**Post date:** [October 14, 2022, 4:02pm UTC](https://community.glideapps.com/t/best-practice-for-creating-a-single-value-role-column/51748/3 "2022-10-14T16:02:27Z")

</div>

Haha, well my question was if there was a better way to do it like a header formula ( I don’t know how to use those).

I did figure out an actual fix now though. I edited the form and added a hidden field which updates to “Admin” once the user fills in their signature. This way I’m not wasting 500 rows.

Edit: keeping this open because I would still like to know if anyone has a suggestion or best practice for making a single column the role of the row owner without wasting rows!

---

<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:** [October 14, 2022, 4:10pm UTC](https://community.glideapps.com/t/best-practice-for-creating-a-single-value-role-column/51748/4 "2022-10-14T16:10:07Z")

</div>

> [@Majestic\_Intern](#):
>
> Haha, well my question was if there was a better way to do it like a header formula ( I don’t know how to use those).

You could use an arrayformula, but whether or not that is “better” is probably debatable.

> [@Majestic\_Intern](#):
>
> I did figure out an actual fix now though. I edited the form and added a hidden field which updates to “Admin” once the user fills in their signature. This way I’m not wasting 500 rows.

I assume you mean a hidden field in your Mighty Form, yeah?  
This seems like a good solution to me, and should solve your problem re wasting rows?

I guess there’s a good reason why you don’t collect your form responses via a Glide Form?

---

<div class="post-metadata">

**Author:** ![Majestic\_Intern](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/majestic_intern/32/36814_2.png) [@Majestic\_Intern](https://community.glideapps.com/u/Majestic_Intern)\
**Post date:** [October 14, 2022, 4:16pm UTC](https://community.glideapps.com/t/best-practice-for-creating-a-single-value-role-column/51748/5 "2022-10-14T16:16:01Z")

</div>

Well yeah I never really figured out to make arrayformulas function properly. I previously had a use case where I wanted an auto increment column (1,2,3,4…) that would update every time a row is added, but never figured it out.

Yes, the hidden field completely solved my problem.

Collecting the form responses from Mighty Forms because it will be embedded on a website. I will not be using a user-facing application, just a back-end application.

Also making a long line item (in this case 29 columns) on glide can get a little tedious lol. Also I’m using conditional logic on the form input, which would force me to make a custom form and entry field placeholders on glide.

---

<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:** [October 14, 2022, 4:23pm UTC](https://community.glideapps.com/t/best-practice-for-creating-a-single-value-role-column/51748/6 "2022-10-14T16:23:14Z")

</div>

> [@Majestic\_Intern](#):
>
> Well yeah I never really figured out to make arrayformulas function properly.

@ThinhDinh has a very good tutorial on the topic of arrayformulas. It’s quite old, but still relevant, I think.

> [@Tutorial: Arrayformula in Google Sheets, good practices & how to overcome Arrayformula restrictions with scripts](https://community.glideapps.com/t/tutorial-arrayformula-in-google-sheets-good-practices-how-to-overcome-arrayformula-restrictions-with-scripts/9727):
>
> Hi, Today I will show you the script that can make copying formulas down work, when it does not work with arrayformula. But first, let’s have some introductions about arrayformula, for those who has not used this before in Google Sheets, some equivalents in Glide and some good practices while using it. I hope it can help you in building your Glide apps as well as applying it in your normal day job. 
> 
> > **1/ Definition**
> >
> > Arrayformula is defined as “a range, mathematical expression using one cell range …

> [@Majestic\_Intern](#):
>
> I previously had a use case where I wanted an auto increment column (1,2,3,4…) that would update every time a row is added, but never figured it out.

If you ever need to do this again, here are a couple of methods that can be used with Glide Tables:

> [@How do I create an auto-incrementing row number with Glide Tables?](https://community.glideapps.com/t/how-do-i-create-an-auto-incrementing-row-number-with-glide-tables/39572):
>
> This is a question that comes up a lot, so creating this topic to use as a reference. Typically, there are two distinct use cases when it comes to auto-incrementing row numbers. Use Case 1: – We need to generate a Part Number, or an Order Number, or an Employee ID. Once the number is generated, it should never change, even if rows are deleted. – The general approach for this use case is to maintain a static counter, use it to craft a suitably formatted ID, and increment it by one every time…

> [@Majestic\_Intern](#):
>
> Collecting the form responses from Mighty Forms because it will be embedded on a website. I will not be using a user-facing application, just a back-end application.
> 
> Also making a long line item (in this case 29 columns) on glide can get a little tedious lol. Also I’m using conditional logic on the form input, which would force me to make a custom form and entry field placeholders on glide.

Fair enough 🙂

---

<div class="post-metadata">

**Author:** ![Majestic\_Intern](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/majestic_intern/32/36814_2.png) [@Majestic\_Intern](https://community.glideapps.com/u/Majestic_Intern)\
**Post date:** [October 14, 2022, 4:31pm UTC](https://community.glideapps.com/t/best-practice-for-creating-a-single-value-role-column/51748/7 "2022-10-14T16:31:45Z")

</div>

Thanks for everything!
