got this error when i made a text field with text input a dependent field. it works fine when using the select widget.

is there a way to display the textfield with any allowed values?

Comments

yechuah’s picture

i modified 1.x-dev to handle textfields

https://github.com/yec/dependent-fields

smoothify’s picture

Status: Active » Closed (duplicate)

Merging a few issues related to the text field implementation, which needs to be improved to allow more functionality and fix some bugs.

Marking this one as a duplicate to help me clear up the queue.

#1050622: Improve text field implementation & fix bugs

smoothify’s picture

Status: Closed (duplicate) » Fixed

I think I was a bit too quick in merging the issues.

This one was easy to fix in isolation, with just a little change to the code.

http://drupal.org/cvs?commit=501682

I have checked your github fork, and although not covered here, I will be making the help & descriptions clearer in the UI to reflect the different types of fields and widgets.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

shashankmestry’s picture

Posted by yechuah on February 8, 2011 at 12:16pm

i modified 1.x-dev to handle textfields

https://github.com/yec/dependent-fields

Hi,
Thanks for your text-field feature support.
But it has one issue.
The dependent text field receives text of only one character i.e. of length 1. The remaining characters are truncated.
e.g. If I enter 'drupal' in dependent text field then it stores on 'D' in that field.
Please help me in this case.

cj-a-min’s picture

Getting the same as shashankmestry.

test1 field (controller) - text field type - text field
test2 field (controlled) - text field type - text field

I input 'Drupal' in test1 field, and test1 field doesn't display (which I assume is per design), and test2 field displays a gibberish character, 'f'.

I input 'Drupal' in test2 field, and test1 field doesn't display (which I assume is per design), and test2 displays 'D' in the field. - Same shashankmestry describes above.

Any Ideas