Hi there....

i have created a vocabulary with a hierachy like this



It's a big vocabulary and i'm using autocomplete for user to choose, but I want to disable the possibility of selecting the root (parent) terms....

I have set it up this way because I need user to be able in a views to search by the root terms.....

How can I manage to disable the root terms in the edit/create form?


acoustika’s picture

I managed to get it to work with a select list with code like this

function my_form_form_alter(&$form, &$form_state, $form_id) { 
	if($form_id == "my_form") {

But how can I get it to work when I use autocomplete widget?

MustangGB’s picture

Issue summary: View changes
Status: Active » Closed (outdated)