0

I have a field with type 'Term reference' and widget 'Check boxes/radio buttons'. As a first value I have a N/A and I've no clue why it appears there.

Term reference works fine if I do not use View. It's not required to be filled.

enter image description here

Is it possible to remove it in proper way?

Thanks.

1

A very late answer, but hopefully it will still help you. I think if you change the term reference field, you have an option if it is optional or mandatory the field. When you choose mandatory, it should be removed that option.

| improve this answer | |
0

If you make a list field mandatory, the N/A option automatically goes away

OR

<?php
unset($form['field_name']['und']['#options']['_none']);
?>
| improve this answer | |

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.