# Workaround needed for Default Value to Number type

**URL:** https://community.glideapps.com/t/workaround-needed-for-default-value-to-number-type/19056
**Category:** Ask for Help
**Created:** [November 28, 2020, 11:30am UTC](https://community.glideapps.com/t/workaround-needed-for-default-value-to-number-type/19056 "2020-11-28T11:30:40Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![RuchikaAbbi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ruchikaabbi/32/11240_2.png) [@RuchikaAbbi](https://community.glideapps.com/u/RuchikaAbbi)
#### Post date: [November 28, 2020, 11:30am UTC](https://community.glideapps.com/t/workaround-needed-for-default-value-to-number-type/19056/1 "2020-11-28T11:30:41Z")

</div>

How are you’ll setting a default value to a Number type?

I need a way to set a default value to a counter which I can then increment. Seems like whatever I try (single value/math) I am not getting it right.

Regards,  
Ruchika

---

<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: [November 28, 2020, 11:41am UTC](https://community.glideapps.com/t/workaround-needed-for-default-value-to-number-type/19056/2 "2020-11-28T11:41:12Z")

</div>

You can set the column type in the Editor to a number type, if that’s what you mean.

---

<div class="post-metadata">

### Author: ![RuchikaAbbi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ruchikaabbi/32/11240_2.png) [@RuchikaAbbi](https://community.glideapps.com/u/RuchikaAbbi)
#### Post date: [November 28, 2020, 11:44am UTC](https://community.glideapps.com/t/workaround-needed-for-default-value-to-number-type/19056/3 "2020-11-28T11:44:16Z")

</div>

I meant setting a default value to the Number type. Eg. I want the column to have the value of 1 by default.

---

<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: [November 28, 2020, 11:47am UTC](https://community.glideapps.com/t/workaround-needed-for-default-value-to-number-type/19056/4 "2020-11-28T11:47:14Z")

</div>

What are you trying to increment on, can you share with us some screenshots of your data?

I’m thinking of an action to do this automatically.

---

<div class="post-metadata">

### Author: ![V88](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/v88/32/90054_2.png) [@V88](https://community.glideapps.com/u/V88)
#### Post date: [November 28, 2020, 11:58am UTC](https://community.glideapps.com/t/workaround-needed-for-default-value-to-number-type/19056/5 "2020-11-28T11:58:29Z")

</div>

You can do this within your form by having a number field, setting it to required, setting its default to the required number, and making it hidden. It will then be part of the form submission.

---

<div class="post-metadata">

### Author: ![RuchikaAbbi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ruchikaabbi/32/11240_2.png) [@RuchikaAbbi](https://community.glideapps.com/u/RuchikaAbbi)
#### Post date: [November 28, 2020, 12:03pm UTC](https://community.glideapps.com/t/workaround-needed-for-default-value-to-number-type/19056/6 "2020-11-28T12:03:26Z")

</div>

In detail;

I have a User Profile table with properties. One of them is ContentID. By default I want the contentID to always be 1.  
Every time the User completes a task, the ContentID will get incremented by the Increment action of Form.

However, I don’t know how to set the default of 1 or even 0 to ContentID. It only gets set as empty.

Hope that helps clarifying it. Thanks for your help!

---

<div class="post-metadata">

### Author: ![V88](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/v88/32/90054_2.png) [@V88](https://community.glideapps.com/u/V88)
#### Post date: [November 28, 2020, 12:29pm UTC](https://community.glideapps.com/t/workaround-needed-for-default-value-to-number-type/19056/7 "2020-11-28T12:29:07Z")

</div>

How are user details entered into the User Profile table?

If this is Pro Private (allowed email only) then my previous suggestion will work.

If this is Pro Public then Glide will add the user details. In this case you can set the value during onboarding, again using the previous suggestion.

---

<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: [November 28, 2020, 12:33pm UTC](https://community.glideapps.com/t/workaround-needed-for-default-value-to-number-type/19056/8 "2020-11-28T12:33:37Z")

</div>

Do you have an onboarding experience for your users, e.g they have to click a button after filling some details to enter the app? I’m thinking of a seamless experience where you hide that initial increment behind an action.

---

<div class="post-metadata">

### Author: ![RuchikaAbbi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ruchikaabbi/32/11240_2.png) [@RuchikaAbbi](https://community.glideapps.com/u/RuchikaAbbi)
#### Post date: [November 30, 2020, 12:46pm UTC](https://community.glideapps.com/t/workaround-needed-for-default-value-to-number-type/19056/9 "2020-11-30T12:46:22Z")

</div>

Thanks @ThinhDinh & @V88!  
I tried a couple of your suggestions, however what I ended up doing and what worked for me as to use an IF-THEN-ELSE which then sets the ContentID default. The IF-THEN-Else works on a Boolean for Profile completion.

Regards,  
Ruchika
