# Best type of field for long dropdown

**URL:** <https://forum.dimagi.com/t/best-type-of-field-for-long-dropdown/3596>\
**Category:** Users\
**Created:** [July 3, 2017, 10:50am UTC](https://forum.dimagi.com/t/best-type-of-field-for-long-dropdown/3596 "2017-07-03T10:50:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CommCare\_N00b](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/commcare_n00b/32/590_2.png) [@CommCare\_N00b](https://forum.dimagi.com/u/CommCare_N00b)\
**Post date:** [July 3, 2017, 10:50am UTC](https://forum.dimagi.com/t/best-type-of-field-for-long-dropdown/3596/1 "2017-07-03T10:50:54Z")

</div>

I have a field that I'd like to be a single select option / dropdown (still  
not used to Dimagi terminology).

The options are as:  
FYXXX - Region - Country - Project Name - Person assigned

If I try to do a regular select this fails as the value that goes in the DB  
allows only 32 chars.

I tried using lookups, but that allows multi selects, and not one option.

What field type should I use so I can store the entire value, yes select  
one option?

---

<div class="post-metadata">

**Author:** ![Ayla\_Reith](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@Ayla\_Reith](https://forum.dimagi.com/u/Ayla_Reith)\
**Post date:** [July 3, 2017, 1:12pm UTC](https://forum.dimagi.com/t/best-type-of-field-for-long-dropdown/3596/2 "2017-07-03T13:12:23Z")

</div>

Hello,

I am not entirely clear on what you would like to do here. Could you  
please give an example of exactly what you want both the question and  
answer to look like?

> **···**
>
> On Mon, Jul 3, 2017 at 10:50 AM, CommCare N00b wrote:
> 
> > I have a field that I'd like to be a single select option / dropdown  
> > (still not used to Dimagi terminology).
> > 
> > The options are as:  
> > FYXXX - Region - Country - Project Name - Person assigned
> > 
> > If I try to do a regular select this fails as the value that goes in the  
> > DB allows only 32 chars.
> > 
> > I tried using lookups, but that allows multi selects, and not one option.
> > 
> > What field type should I use so I can store the entire value, yes select  
> > one option?
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "commcare-users" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [commcare-users+unsubscribe@googlegroups.com](mailto:commcare-users+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> _Ayla Reith_  
> Senior Field Manager | Analyste Projet  
> West Africa | Afrique de l'Ouest  
> Dimagi, Inc  
> ​  
> m (  
> _​Senegal_  
> ):  
> ​  
> _​​+221 77 760 74 36_  
> ​​
> 
> Skype : aylareith1
> 
> > **[Transforming Social Impact: Data Collection Software & Digital Health...](https://www.dimagi.com/)**
> >
> > Enabling global NGOs with cutting-edge data collection software & digital health solutions. Discover how Dimagi powers impactful frontline work.

---

<div class="post-metadata">

**Author:** ![CommCare\_N00b](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/commcare_n00b/32/590_2.png) [@CommCare\_N00b](https://forum.dimagi.com/u/CommCare_N00b)\
**Post date:** [July 3, 2017, 1:19pm UTC](https://forum.dimagi.com/t/best-type-of-field-for-long-dropdown/3596/3 "2017-07-03T13:19:45Z")

</div>

Dropdown field, with entries such as:

FY2017 - CARO - DR Congo - Project with name - Some person 1  
FY2017 - WARO - Ghana - Project with name 2 - Some person 1  
FY2017 - EARO - Kenya - Project with name 3 - Some person 2

> **···**
>
> On Monday, July 3, 2017 at 3:12:26 PM UTC+2, areith wrote: \> \> Hello, \> \> I am not entirely clear on what you would like to do here. Could you \> please give an example of exactly what you want both the question and \> answer to look like? \> \> On Mon, Jul 3, 2017 at 10:50 AM, CommCare N00b \<ognen.p...@gmail.com \> wrote: \> \>\> I have a field that I'd like to be a single select option / dropdown \>\> (still not used to Dimagi terminology). \>\> \>\> The options are as: \>\> FYXXX - Region - Country - Project Name - Person assigned \>\> \>\> If I try to do a regular select this fails as the value that goes in the \>\> DB allows only 32 chars. \>\> \>\> I tried using lookups, but that allows multi selects, and not one option. \>\> \>\> What field type should I use so I can store the entire value, yes select \>\> one option? \>\> \>\> -- \>\> You received this message because you are subscribed to the Google Groups \>\> "commcare-users" group. \>\> To unsubscribe from this group and stop receiving emails from it, send an \>\> email to commcare-user...@googlegroups.com . \>\> For more options, visit https://groups.google.com/d/optout. \>\> \> \> \> \> -- \> \*Ayla Reith\* \> Senior Field Manager | Analyste Projet \> West Africa | Afrique de l'Ouest \> Dimagi, Inc \> ​ \> m ( \> \*​Senegal\* \> ): \> ​ \> \*​​+221 77 760 74 36\* \> ​​ \> \> Skype : aylareith1 \> http://www.dimagi.com/ \>

---

<div class="post-metadata">

**Author:** ![CommCare\_N00b](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/commcare_n00b/32/590_2.png) [@CommCare\_N00b](https://forum.dimagi.com/u/CommCare_N00b)\
**Post date:** [July 3, 2017, 1:21pm UTC](https://forum.dimagi.com/t/best-type-of-field-for-long-dropdown/3596/4 "2017-07-03T13:21:10Z")

</div>

If I try multiselect, I get this error: [Imgur: The magic of the Internet](http://imgur.com/a/KbP5a)

> **···**
>
> On Monday, July 3, 2017 at 3:12:26 PM UTC+2, areith wrote: \> \> Hello, \> \> I am not entirely clear on what you would like to do here. Could you \> please give an example of exactly what you want both the question and \> answer to look like? \> \> On Mon, Jul 3, 2017 at 10:50 AM, CommCare N00b \<ognen.p...@gmail.com \> wrote: \> \>\> I have a field that I'd like to be a single select option / dropdown \>\> (still not used to Dimagi terminology). \>\> \>\> The options are as: \>\> FYXXX - Region - Country - Project Name - Person assigned \>\> \>\> If I try to do a regular select this fails as the value that goes in the \>\> DB allows only 32 chars. \>\> \>\> I tried using lookups, but that allows multi selects, and not one option. \>\> \>\> What field type should I use so I can store the entire value, yes select \>\> one option? \>\> \>\> -- \>\> You received this message because you are subscribed to the Google Groups \>\> "commcare-users" group. \>\> To unsubscribe from this group and stop receiving emails from it, send an \>\> email to commcare-user...@googlegroups.com . \>\> For more options, visit https://groups.google.com/d/optout. \>\> \> \> \> \> -- \> \*Ayla Reith\* \> Senior Field Manager | Analyste Projet \> West Africa | Afrique de l'Ouest \> Dimagi, Inc \> ​ \> m ( \> \*​Senegal\* \> ): \> ​ \> \*​​+221 77 760 74 36\* \> ​​ \> \> Skype : aylareith1 \> http://www.dimagi.com/ \>

---

<div class="post-metadata">

**Author:** ![Jordan\_Levinson](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/j/a8b319/32.png) [@Jordan\_Levinson](https://forum.dimagi.com/u/Jordan_Levinson)\
**Post date:** [July 3, 2017, 1:26pm UTC](https://forum.dimagi.com/t/best-type-of-field-for-long-dropdown/3596/5 "2017-07-03T13:26:57Z")

</div>

Hey, I think your instinct was right and that a multiple choice lookup  
table will be what you need, if I'm understanding you correctly (you want  
people to select a single option, right? the 'checkbox' lookup will allow  
multiple choices, 'multiple choice' allows only one, perhaps not so  
intuitively). I don't know what the character limit is for a 'name' field  
but maybe someone else can chime in. Then to make the question a dropdown  
you can set the appearance attribute to 'minimal'. This wiki page  
[https://confluence.dimagi.com/display/commcarepublic/Advanced+CommCare+Android+Formatting#AdvancedCommCareAndroidFormatting-AppearanceAttribute-Overview](https://confluence.dimagi.com/display/commcarepublic/Advanced+CommCare+Android+Formatting#AdvancedCommCareAndroidFormatting-AppearanceAttribute-Overview)  
may help you find what you're looking for in terms of formatting.

Good luck!

Jordan

> **···**
>
> On Mon, Jul 3, 2017 at 6:51 PM, CommCare N00b wrote:
> 
> > If I try multiselect, I get this error: [http://imgur.com/a/KbP5a](http://imgur.com/a/KbP5a)
> > 
> > On Monday, July 3, 2017 at 3:12:26 PM UTC+2, areith wrote:
> > 
> > > Hello,
> > > 
> > > I am not entirely clear on what you would like to do here. Could you  
> > > please give an example of exactly what you want both the question and  
> > > answer to look like?
> > > 
> > > On Mon, Jul 3, 2017 at 10:50 AM, CommCare N00b [ognen.p...@gmail.com](mailto:ognen.p...@gmail.com) wrote:
> > > 
> > > > I have a field that I'd like to be a single select option / dropdown  
> > > > (still not used to Dimagi terminology).
> > > > 
> > > > The options are as:  
> > > > FYXXX - Region - Country - Project Name - Person assigned
> > > > 
> > > > If I try to do a regular select this fails as the value that goes in the  
> > > > DB allows only 32 chars.
> > > > 
> > > > I tried using lookups, but that allows multi selects, and not one option.
> > > > 
> > > > What field type should I use so I can store the entire value, yes select  
> > > > one option?
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "commcare-users" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [commcare-user...@googlegroups.com](mailto:commcare-user...@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > _Ayla Reith_  
> > > Senior Field Manager | Analyste Projet  
> > > West Africa | Afrique de l'Ouest  
> > > Dimagi, Inc  
> > > ​  
> > > m (  
> > > _​Senegal_  
> > > ):  
> > > ​  
> > > _​​+221 77 760 74 36_  
> > > ​​
> > > 
> > > Skype : aylareith1  
> > > [http://www.dimagi.com/](http://www.dimagi.com/)
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "commcare-users" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [commcare-users+unsubscribe@googlegroups.com](mailto:commcare-users+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Jordan Levinson  
> Dimagi India | Field Manager  
> D - 1/28 Vasant Vihar | New Delhi 110057, India  
> t: +91 11.46704670 | m: +91 9599692119
> 
> > **[Transforming Social Impact: Data Collection Software & Digital Health...](https://www.dimagi.com)**
> >
> > Enabling global NGOs with cutting-edge data collection software & digital health solutions. Discover how Dimagi powers impactful frontline work.
> 
> _- We're hiring! Find out more here [http://www.dimagi.com/about/careers/](http://www.dimagi.com/about/careers/).  
> -_
