# I am Making a form of students in which I need a unique number

**URL:** https://community.thunkable.com/t/i-am-making-a-form-of-students-in-which-i-need-a-unique-number/542177
**Category:** Questions about Thunkable X
**Tags:** firebase, beginner
**Created:** [March 29, 2020, 6:23am UTC](https://community.thunkable.com/t/i-am-making-a-form-of-students-in-which-i-need-a-unique-number/542177 "2020-03-29T06:23:03Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![sakshamgoyal4031](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@sakshamgoyal4031](https://community.thunkable.com/u/sakshamgoyal4031)
#### Post date: [March 29, 2020, 6:23am UTC](https://community.thunkable.com/t/i-am-making-a-form-of-students-in-which-i-need-a-unique-number/542177/1 "2020-03-29T06:23:03Z")

</div>

I am making form in which I need Only numbers which starts from 1 and next number never repeats and next number will come 2 …how to use blocks for this when I will click a button then automatically unique number( starting from 1) will come and stores in firebase and that number will never repeat again.

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [March 29, 2020, 6:39am UTC](https://community.thunkable.com/t/i-am-making-a-form-of-students-in-which-i-need-a-unique-number/542177/2 "2020-03-29T06:39:52Z")

</div>

it would probably be easiest to use a cloud variable for this.

---

<div class="post-metadata">

### Author: ![sakshamgoyal4031](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@sakshamgoyal4031](https://community.thunkable.com/u/sakshamgoyal4031)
#### Post date: [March 29, 2020, 7:48am UTC](https://community.thunkable.com/t/i-am-making-a-form-of-students-in-which-i-need-a-unique-number/542177/3 "2020-03-29T07:48:36Z")

</div>

can you explain me in more details. I want to know that how to use blocks for this and I am using firebase in my project.

---

<div class="post-metadata">

### Author: ![sakshamgoyal4031](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@sakshamgoyal4031](https://community.thunkable.com/u/sakshamgoyal4031)
#### Post date: [March 30, 2020, 7:05am UTC](https://community.thunkable.com/t/i-am-making-a-form-of-students-in-which-i-need-a-unique-number/542177/4 "2020-03-30T07:05:43Z")

</div>

Please help me

---

<div class="post-metadata">

### Author: ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)
#### Post date: [March 30, 2020, 8:49am UTC](https://community.thunkable.com/t/i-am-making-a-form-of-students-in-which-i-need-a-unique-number/542177/5 "2020-03-30T08:49:32Z")

</div>

Hi, @sakshamgoyal4031! 👋

This idea must help you -

- Setup Airtable in Thunkable, and create a column in the database.
- Whenever you click the button, generate a random no., and check weather it’s present in the database.
- If it’s present, then generate another no. because the previous no. is already present/used.
- When a new no. is generated, use it your way, and add it to the Airtable column.

Thanks! 😊  
**P.S.** This method is not that much efficient, because it only checks the original no. - not the new one. I’ll come up with an efficient method soon. **This doesn’t mean that you can’t use this method.**

---

<div class="post-metadata">

### Author: ![sakshamgoyal4031](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@sakshamgoyal4031](https://community.thunkable.com/u/sakshamgoyal4031)
#### Post date: [March 30, 2020, 10:25am UTC](https://community.thunkable.com/t/i-am-making-a-form-of-students-in-which-i-need-a-unique-number/542177/7 "2020-03-30T10:25:22Z")

</div>

Can I use this with Firebase ?(because I am using firebase) If yes please tell me how and please tell me about how to use blocks for this .  
Thanks 😊

---

<div class="post-metadata">

### Author: ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)
#### Post date: [March 30, 2020, 10:43am UTC](https://community.thunkable.com/t/i-am-making-a-form-of-students-in-which-i-need-a-unique-number/542177/8 "2020-03-30T10:43:25Z")

</div>

@jared

---

<div class="post-metadata">

### Author: ![sakshamgoyal4031](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@sakshamgoyal4031](https://community.thunkable.com/u/sakshamgoyal4031)
#### Post date: [March 31, 2020, 8:23am UTC](https://community.thunkable.com/t/i-am-making-a-form-of-students-in-which-i-need-a-unique-number/542177/10 "2020-03-31T08:23:07Z")

</div>

I want to do that when button is click a unique Id (can be start from 1 and this number will not repeat again once used) how to do this in air table.How to set blocks for this?  
Please help me.

---

<div class="post-metadata">

### Author: ![sakshamgoyal4031](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@sakshamgoyal4031](https://community.thunkable.com/u/sakshamgoyal4031)
#### Post date: [April 1, 2020, 8:01am UTC](https://community.thunkable.com/t/i-am-making-a-form-of-students-in-which-i-need-a-unique-number/542177/11 "2020-04-01T08:01:09Z")

</div>

Hi  
I am Making A form for students in which I want to do that when form screen initialize automtic a unique number which is plus 1 from previous number appears on screen and that number should not repeat again.  
Please help me I am facing a lot of problem.

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [April 1, 2020, 5:52pm UTC](https://community.thunkable.com/t/i-am-making-a-form-of-students-in-which-i-need-a-unique-number/542177/12 "2020-04-01T17:52:03Z")

</div>

> [@Creating a multiplayer online game room](http://community.thunkable.com/t/creating-a-multiplayer-online-game-room/470328/9):
>
> Hi. please see this there is a side navigator. pull it out and go to the screen “cloud counting” I find cloud variables much easier to work with than firebase, but either would work for this use case

See this post

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 11:39am UTC](https://community.thunkable.com/t/i-am-making-a-form-of-students-in-which-i-need-a-unique-number/542177/13 "2024-11-08T11:39:28Z")

</div>


