# User generated choice component source

**URL:** <https://community.glideapps.com/t/user-generated-choice-component-source/35351>\
**Category:** Ask for Help\
**Created:** [December 1, 2021, 6:49pm UTC](https://community.glideapps.com/t/user-generated-choice-component-source/35351 "2021-12-01T18:49:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trading\_5\_Talents](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/trading_5_talents/32/33858_2.png) [@Trading\_5\_Talents](https://community.glideapps.com/u/Trading_5_Talents)\
**Post date:** [December 1, 2021, 6:49pm UTC](https://community.glideapps.com/t/user-generated-choice-component-source/35351/1 "2021-12-01T18:49:55Z")

</div>

I’m trying to make a choice component with user-generated data. I know that I can make a form, add a row and then use a column of that as a choice component. However my app will have the user enter a stock symbol with quantity and price. But a user can by multiple lots of shares at different times so the choice component may have double entries. How can I solve this?

The goal is to make a cost basis calculator that would basically use this type of input:

10 shares of ABC at $1  
10 shares of ABC at $3  
5 shares of XYZ at $10  
5 shares of XYZ at $12

And then display this type of calculation:

You have 20 shares of ABC at a cost basis of $2 per share  
You have 10 shares of XYZ at a cost basis of $11 per share

---

<div class="post-metadata">

**Author:** ![Trading\_5\_Talents](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/trading_5_talents/32/33858_2.png) [@Trading\_5\_Talents](https://community.glideapps.com/u/Trading_5_Talents)\
**Post date:** [December 1, 2021, 9:02pm UTC](https://community.glideapps.com/t/user-generated-choice-component-source/35351/2 "2021-12-01T21:02:00Z")

</div>

Actually I think I got it 😀 The choice component doesn’t display multiple values, which was my concern. Therefore this should be an easy setup from here.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [December 2, 2021, 9:02pm UTC](https://community.glideapps.com/t/user-generated-choice-component-source/35351/3 "2021-12-02T21:02:54Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
