2

First, let's describe what I have already:

  • Vocabulary: "Categories" with some terms added(cat1, cat2, cat3)
  • New content type "custom_page" where I added a new field of type "Term reference" using vocabulary "Categories";
  • Widget type for previous field is "Check boxes/radio buttons" because a custom_page can be part of multiple categories;

It is possible when adding a new custom_page, to add additional fields for each category selected?

Assuming, I checked "cat1" and "cat3" -> it is possible to add 3 more fields inline (new_field1, new_field2, new_field3) with every category selected?

Thanks, Alex

  • Do you want hierarchical taxonomy, or totally custom fields, like text inpute, images etc, taxonomy based? In Drupal there is no mechanism for fields depending on another fields, as far as I know. – Mołot May 14 '13 at 10:38
  • for each category(term from vocabulary) checked I want 3 more fields(simple text fields) – Alex Rose May 14 '13 at 10:45
0

Can't do with core functionality. You need to modify form using hook_form_alter. Probably you would want to use Drupal form's AJAX to make fields appear.

I don't know if there is a contrib module to do this, I can't see any.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.