Currently there's a limit of 128 characters for text fields (and probably for other too). This mean I can't enter more then 128 characters in a field. I need to enter more and I do not see a reason why the limit can't be higher (I'd say 1024 or more chars would be enough). DB can support up to 16,777,215 characters, so that's not a problem.

Comments

stevryn’s picture

I had the same situation, what I did was change the length in the .inc file. For example, I needed my URL field longer so

in the file called field_url.inc

I changed the value to 255
function flexinode_field_url_form($field, &$node, $error) {
$fieldname = 'flexinode_'. $field->field_id;
return form_textfield(t($field->label), $fieldname, isset($node->$fieldname) ? $node->$fieldname : $field->default_value, 60, THIS VALUE , t($field->description) . ' ' . theme('error', $error[$fieldname]));
}

and also here:

function flexinode_field_url_config($field, $edit) {
return form_textfield(t('Default value'), 'default_value', $edit['default_value'], 60, THIS VALUE);
}

dtan’s picture

what's wrong with using a textarea?

maui1’s picture

Title: Increase max length for fields » Increase max length for flexinode field labels

I have a related question, How can I change the maximum length of the Labels. I am making a flexinode form that requires labels about twice the current limit.

I tried changing the Label type in the database table flexinode field from varchar 255 to longtext with no apparent effect.

Is there a script hack to accomplish this?