Closed (fixed)
Project:
Advanced Poll
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Dec 2007 at 15:49 UTC
Updated:
1 Sep 2018 at 05:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ChrisKennedy commentedI think 2048 characters should do the trick.
Comment #2
ChrisKennedy commentedHere is a slight tweak to use variable_get() so that site admins can easily customize the max length by defining the Drupal variable advpoll_max_length (no need to create a UI for this though).
Comment #3
anders.fajerson commentedLooks nice. Maybe a more descriptive name though, e.g. advpoll_choice_max_length.
Comment #4
ChrisKennedy commentedGood point; I changed it to advpoll_choice_max_length.
http://drupal.org/cvs?commit=90690
Comment #5
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
el_pirata commentedThis is exactly what I'm after only I'm wondering if there's a fix for the most recent dev version.
I'm currently using AdvPoll version 7.x-3.x-dev and want to increase the length of the poll choice field.
Any suggestions on how to best accomplish this? ...and yes, I have data in that field from other polls....
Comment #7
off commentedSubscribe
Comment #8
justindodge commentedFor 7.x-3.x: In advoll_field/advpoll_field.module under function
advpoll_field_field_widget_form()is the FAPI definition for the choice textfield, but it's missing a '#maxlength' property and 128 appears to be the default.The database definition for the field column is varchar (500), so it should be safe to go at least up to that number here. 128 is a little restrictive.
My code looks like this:
Sorry I'm not making a patch, just tooling around with this and making a quick hack for fun purposes and thought I'd share.
Not sure if it's appropriate to re-open the issue, but I'm opening it so it can get some attention for 7.x
Comment #9
tripper54 commentedThanks for re-opening, this was not on my radar at all. Patches welcome!
Comment #10
natew commentedAttached is a patch for Drupal 7 to increase the edit widget to allow up to 500 characters. I did some quick testing and this didn't seem to have any issues, and allowed us to enter up to 500 characters as a poll choice. Which is the amount allowed in the database.
Comment #11
natew commentedComment #14
nags338228 commentedA code without hacking the module
Comment #15
mikhailkrainiuk commentedComment #17
mikhailkrainiuk commentedOk. Patch committed.