Closed (works as designed)
Project:
Drupal core
Version:
7.12
Component:
forms system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2012 at 14:46 UTC
Updated:
19 Mar 2014 at 23:22 UTC
Jump to comment: Most recent
Comments
Comment #1
Daniel_KM commentedHi,
"#states" uses Javascript. If you use a tree, the form item has another name, that you should use in your form item.
If you have this form without tree:
You can convert it to :
You can use alse another reference, as
':input[id=edit-data-protocol]' => array('value' => 'local'),.Warning, you need to protect your #states item with
", because there are "[" and "]".Sincerely,
Daniel Berthereau
Infodoc & Knowledge management
Comment #2
farald commentedThank you lots for this clarification Daniel!
Comment #3
jtellis commentedThank you! I've been beating my head against this problem for far too long!