# Add more variables to JavaScript column

**URL:** <https://community.glideapps.com/t/add-more-variables-to-javascript-column/61079>\
**Category:** Feature Requests\
**Created:** [April 28, 2023, 12:33am UTC](https://community.glideapps.com/t/add-more-variables-to-javascript-column/61079 "2023-04-28T00:33:45Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [April 28, 2023, 12:33am UTC](https://community.glideapps.com/t/add-more-variables-to-javascript-column/61079/1 "2023-04-28T00:33:45Z")

</div>

Please add more variables to the JavaScript column… 3 is really way too little… I have to join and split all the time.

Why was JavaScript sad?

Because it didn’t know how to `null` its feelings.

---

<div class="post-metadata">

**Author:** ![Yasin\_Hassanien](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yasin_hassanien/32/9042_2.png) [@Yasin\_Hassanien](https://community.glideapps.com/u/Yasin_Hassanien)\
**Post date:** [April 28, 2023, 4:44am UTC](https://community.glideapps.com/t/add-more-variables-to-javascript-column/61079/2 "2023-04-28T04:44:36Z")

</div>

I think there is no need for this as this can be done by the template column then you can lookup the code in the java script column as. Work around

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [April 28, 2023, 4:49am UTC](https://community.glideapps.com/t/add-more-variables-to-javascript-column/61079/3 "2023-04-28T04:49:42Z")

</div>

??? Variables from columns… it is for comfort… now I have to join variables, then split them inside JavaScript… I have no idea what your point is.

---

<div class="post-metadata">

**Author:** ![Yasin\_Hassanien](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yasin_hassanien/32/9042_2.png) [@Yasin\_Hassanien](https://community.glideapps.com/u/Yasin_Hassanien)\
**Post date:** [April 28, 2023, 5:04am UTC](https://community.glideapps.com/t/add-more-variables-to-javascript-column/61079/4 "2023-04-28T05:04:45Z")

</div>

You can build your whole code in the template column and just add it in the JavaScript in 1 variable, this will give you unlimited variables

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [April 28, 2023, 5:07am UTC](https://community.glideapps.com/t/add-more-variables-to-javascript-column/61079/5 "2023-04-28T05:07:14Z")

</div>

Same as joining variables… I’m talking JavaScrip with more p1…p2…p3…p4…p5…p6… so when I’m working on script… I don’t have to adjust any other column… BTW are you suggesting for me to make a workaround? I’m a master of workaround… LOL… I requested a solution not to make workarounds… 😉

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [April 28, 2023, 7:23am UTC](https://community.glideapps.com/t/add-more-variables-to-javascript-column/61079/6 "2023-04-28T07:23:23Z")

</div>

One more thing… Glide has an excellent Java editor… if you have all your var feed… it will show you real live results without debugging and saving… You just type and watch… and maybe in the future, they will have some more advanced error notifications… but… still a very pleasant experience to write codes in Glide!  
That’s why I requested more variables… so I can see live changes while I’m writing the code.  
And all of my customers will agree with me… when I have a Zoom session with them… it is the most amazing tool… that you can put the return in any place in the code… and see what is working without clicking done… and adjusting other columns.

---

<div class="post-metadata">

**Author:** ![Yasin\_Hassanien](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yasin_hassanien/32/9042_2.png) [@Yasin\_Hassanien](https://community.glideapps.com/u/Yasin_Hassanien)\
**Post date:** [April 28, 2023, 8:27am UTC](https://community.glideapps.com/t/add-more-variables-to-javascript-column/61079/7 "2023-04-28T08:27:18Z")

</div>

I hear you, but lately glide are having a big focus on automation thats why…

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [April 28, 2023, 8:30am UTC](https://community.glideapps.com/t/add-more-variables-to-javascript-column/61079/8 "2023-04-28T08:30:09Z")

</div>

I have seen David adding ten extra variables to other columns… just like that… (one time, it was on my request). I hope he will do it again @david

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [December 6, 2023, 3:56am UTC](https://community.glideapps.com/t/add-more-variables-to-javascript-column/61079/9 "2023-12-06T03:56:26Z")

</div>

Can I have more votes on this request? Please… 10 or more variables 🙏

---

<div class="post-metadata">

**Author:** ![Jonathan\_P\_V](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jonathan_p_v/32/85621_2.png) [@Jonathan\_P\_V](https://community.glideapps.com/u/Jonathan_P_V)\
**Post date:** [February 25, 2025, 8:15pm UTC](https://community.glideapps.com/t/add-more-variables-to-javascript-column/61079/10 "2025-02-25T20:15:32Z")

</div>

Hi there!

I’m not an expert, but I came across this problem today and noticed an issue (and its solution) that may be useful for other fellow amateur Gliders:

When passing code to a JS column using a Template column (because I need more than three variables) for a validation function (to detect empty cells), everything worked fine until “p10”, where it stopped validating. It seems dumb and obvious, but tricky at the same time… The problem is that Glide will read “p1” and input the variable found in “p1”, even if the field is supposed to be “p10”. The solution is to use different letters for each dozen. I used: “p8”, “p9”, “q10”, “q11”, and it worked perfectly.

It’s not a groundbreaking discovery, but hopefully useful for someone struggling with this problem at the moment.

Cheers!

---

<div class="post-metadata">

**Author:** ![slscustom.ru](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slscustom.ru/32/77336_2.png) [@slscustom.ru](https://community.glideapps.com/u/slscustom.ru)\
**Post date:** [February 25, 2025, 8:49pm UTC](https://community.glideapps.com/t/add-more-variables-to-javascript-column/61079/11 "2025-02-25T20:49:17Z")

</div>

Hmm, interesting!  
Where you declare p4 and so on? And why? Why do you need px, instead directly inject warables in template column?

---

<div class="post-metadata">

**Author:** ![Jonathan\_P\_V](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jonathan_p_v/32/85621_2.png) [@Jonathan\_P\_V](https://community.glideapps.com/u/Jonathan_P_V)\
**Post date:** [February 26, 2025, 8:44am UTC](https://community.glideapps.com/t/add-more-variables-to-javascript-column/61079/12 "2025-02-26T08:44:28Z")

</div>

Hi! For sure it is just my lack of programming knowledge…

As you say I declare the variables in the Template column but my code stopped working at “p10”, let’s say [p1 = Name] and [p10 = Phone], if you declare “p1, p2 ,…, p10” when glide comes to p10 will substitute it for Name0, p11 would be Name1 and so on. Changing the letter (or using a similar approach) solves the problem and I just wanted to share it with other non expert gliders 🙂

Have a nice day!

---

<div class="post-metadata">

**Author:** ![slscustom.ru](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slscustom.ru/32/77336_2.png) [@slscustom.ru](https://community.glideapps.com/u/slscustom.ru)\
**Post date:** [February 26, 2025, 10:34am UTC](https://community.glideapps.com/t/add-more-variables-to-javascript-column/61079/13 "2025-02-26T10:34:35Z")

</div>

Ok! I take it. Thanks for sharing!
