In my 'Basic page' content type I've added a yes/no radio field. Currently that is outputting as the value chosen. If yes is chosen I want to output a specific button, if no was chosen I don't want to output anything. How do I go about overriding the basic page template to achieve this?

--EDIT-- I don't want the radio option showing for the site visitor, only for the content editor. I want either the button or nothing showing to the site visitor.

  • I have never used it, but I guess you could give this one a try: drupal.org/project/conditional_fields Mar 20, 2013 at 10:56
  • Conditional field is for fields in node editing, not in display. Though, using something like "if second field is empty", you could achieve this. Mar 20, 2013 at 11:44

1 Answer 1


By using @Neograph734's advice I did use conditional fields. Within the content type structure I added a field a link field(the button I wanted to conditionally show). Then used the conditional field to show this link when needed.

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.