Per the documentation here https://www.drupal.org/docs/contributed-modules/conditional-fields

A simple use case would be defining a custom “Article teaser" field that is shown only if a "Has teaser" checkbox is checked, but much more complex options are available.

When I implement this logic on the Edit page the thumbnail image field becomes invisible though when I view the content the thumbnail image is displayed.

I would prefer the field on the edit form not disappear when checking the box. I only need the image to not be displayed when the content is viewed (displayed).

Make sense?

Comments

joshuautley created an issue. See original summary.

tim-diels’s picture

Status: Active » Closed (works as designed)

Hi, this module is only for conditionally do something with fields on the add/edit of content. Not on the view of content. You'll need another module for that or custom code. This module works with the States API and that is only available on forms.

When editing a node (or any other entity type that supports fields, like users and categories), the dependent fields are dynamically modified with the States API.