Is it posible to prevent users selecting a term within a vocabulary. I have the following setup:

Category
--Parent
-- Child

I dont want users to be able to select "Parent". It should show in the dropdown list but should not be selectable. Only "Child" should be slectable. Is this possible??

I can see its working on the Drupal site here. I tried to save this post into "General" category but got an error message. How can I achieve this?

Comments

bwv’s picture

Great question... subscribing.

ibexy’s picture

anyone please ...

Netbuddy’s picture

I'd like to know the answer to this one as well.

ibexy’s picture

its already working on the drupal site here. you cant save into vocabulary containers. there must be a module for this.

bwv’s picture

Something tells me that this is something that you can control in the View itself. Have you tried looking through the Views issue queue for any information about this option?

alliax’s picture

I believe this module can do it nicely: http://drupal.org/project/hierarchical_select

mahyarsbt’s picture

hierarchical_select very good module but have a lot of bugs.

mj_ahmadi’s picture

Best module I find for this is: http://drupal.org/project/select_with_style

cheers :D

jordimateubesancon’s picture

I tested with Simple hierarchical select module (https://www.drupal.org/project/shs) but it I have not achieved what I wanted. Select With Style module does exactly what I want, that is make parent options become labels, which cannot be selected (using the Select list, styled optgroups widget).

mahyarsbt’s picture

+1

Any body know how make term parents to non-selectable label in term reference select box?

I create vocabulary "Department" like this terms:

Department (vocabulary):
Master term
- Parent 1
-- Child 1
-- Child 2
-- Child 3
- Parent 2
-- Child 1
-- Child 2
-- Child 3
- Parent 3
-- Child 1
-- Child 2
--- child 2 -1
--- child 2 -2
- Parent 4
-- Child 1
-- Child 2
-- Child 3

I need select box term reference show parent 1 - 4 non - selectable

please help me
thanks

WorldFallz’s picture

did you even bother to read the comments just above?

alliax’s picture

Check the dates.. :-)