I need to create a content with the allowed values of "select list" text fields depends on the value selected in another select list field.
Example:
field_a = a --> allowed values (1,2,3)
field_a = b --> allowed value (4,5,6)

Is it possible?

Comments

marcvangend’s picture

You can use the conditional fields module (drupal.org/project/conditional_fields) to show/hide entire fields based on the value of another field. Afaik, it does not allow you to show/hide only some of the available values. If it's acceptable for you to split the allowed values into two separate fields, you can switch between those using conditional fields module. If you really need all values in one field, maybe you can enhance it and contribute a patch.