Drupal: Hide and Show cck fields in nodes -
it possiblle hide cck fields , show other cck field when choose combobox opcion in node?
for example: combobox opcions: 1 field, 2 fields
if select 1 field, form has text field if select 2 fields, form has text area , imagefield
you can use conditional fields module. after installing module, can use such:
- in content type, add select box , in allowed values area add "1 field" , "2 fields"
- create text field, should see fieldset titled "conditional fields settings", open , choose "1 field"
- do similar process create textarea , imagefield choose "2 fields" in conditional fields settings.
now when creating content type, when changing value of select box show different fields on form.
more information:
example screenshots
documentation conditional fields
Comments
Post a Comment