# Working with two different data types in a repeating group

**URL:** <https://forum.bubble.io/t/working-with-two-different-data-types-in-a-repeating-group/241734>\
**Category:** Database\
**Created:** [January 16, 2023, 1:58pm UTC](https://forum.bubble.io/t/working-with-two-different-data-types-in-a-repeating-group/241734 "2023-01-16T13:58:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephenrice1](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@stephenrice1](https://forum.bubble.io/u/stephenrice1)\
**Post date:** [January 16, 2023, 1:58pm UTC](https://forum.bubble.io/t/working-with-two-different-data-types-in-a-repeating-group/241734/1 "2023-01-16T13:58:15Z")

</div>

I am building a staff survey for a workplace. I’ve created a data type of question, and a data type of answer, and added all the questions to the database. The answer data type has a question field, which I plan to use to link each answer to it’s question in the question database.

I have created a repeating group and added the questions and a slider input. The questions display find from the questions in the database. I want the slider input to function by adding (or updating) an answer where the question field is the same as the question displayed in the repeating group. I can’t figure out if there is a way to do this?

Is anyone able to help? I’m happy to clarify anything if what I’ve described is unclear!

---

<div class="post-metadata">

**Author:** ![ntabs](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@ntabs](https://forum.bubble.io/u/ntabs)\
**Post date:** [January 16, 2023, 2:08pm UTC](https://forum.bubble.io/t/working-with-two-different-data-types-in-a-repeating-group/241734/2 "2023-01-16T14:08:29Z")

</div>

Hello,

This thread might help. Thank @adamhholmes later [Combining repeating groups - #5 by adamhholmes](http://forum.bubble.io/t/combining-repeating-groups/187572/5)

Although if you simple want to show the answer to each question and since you mentioned the data type `question` has a `answer` field, why not simply make your repeating group’s data type as question and each cell’s question will have a `current cell's question's answer` ?

Hope this helps…

Best,  
Nino

---

<div class="post-metadata">

**Author:** ![stephenrice1](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@stephenrice1](https://forum.bubble.io/u/stephenrice1)\
**Post date:** [January 16, 2023, 5:31pm UTC](https://forum.bubble.io/t/working-with-two-different-data-types-in-a-repeating-group/241734/3 "2023-01-16T17:31:21Z")

</div>

> [@stephenrice1](#):
>
> The answer data type has a question field, which I plan to use to link each answer to it’s question in the question database.

Hi Nino, this would work if each question had a set answer, but what I’m trying to capture in the Answers data type is each user’s response(answer) to the question. I hope that makes sense?

---

<div class="post-metadata">

**Author:** ![stephenrice1](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@stephenrice1](https://forum.bubble.io/u/stephenrice1)\
**Post date:** [January 16, 2023, 10:37pm UTC](https://forum.bubble.io/t/working-with-two-different-data-types-in-a-repeating-group/241734/4 "2023-01-16T22:37:24Z")

</div>

Hi Nino, I think I found an alternative solution to this. The Questions are all likert scale questions, so I can add fields for each likert score to the question data type and then add the user’s score on to the total e.g. When a user clicks on ‘strongly disagree’ I can add 1 to the ‘strongly disagree’ field of that question. It seems to work ok.
