Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Form Fields can't handle large list of select options. #906

Closed
jetherton opened this issue Oct 23, 2012 · 3 comments
Closed

Custom Form Fields can't handle large list of select options. #906

jetherton opened this issue Oct 23, 2012 · 3 comments

Comments

@jetherton
Copy link
Collaborator

In the database formfield.field_default is a VARCHAR(200) and thus can't handle large lists of select items. For example it can't handle all 50 US states. This field should be changed to a text or longtext.

@srutto
Copy link
Contributor

srutto commented Apr 25, 2013

This is still an issue. Confirmed in 2.7b on http://testing.ushahidi.com/.

  1. Go to Manage/Forms
  2. Add form field
  3. Choose dropdown field as field type
  4. Enter field name and about 60 dropdown choices
    You get the error below:
    TinyGrab Screen Shot 4-25-13 8 07 02 AM

I think this should be re-opened @rjmackay

@rjmackay rjmackay reopened this Apr 25, 2013
@rjmackay
Copy link
Contributor

Need to check the form field validation.. seems something is still missing here.

However thats the wrong format for options. Options should be comma separated, not new line separated.

@srutto
Copy link
Contributor

srutto commented Apr 26, 2013

Oh, my bad :). I re-tested and had the options comma separated and it worked. I added close to 90 options. So I guess the error was because they were new line separated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants