Score:0

How to show/hide a webform block on nodes of specific content type based on node field value?

id flag

I have a webform with machine name "podcast". I am displaying this webform as a block in the nodes of content type with the machine name 'podcast'. There is a file field with the machine name 'field_podcast_discussion_guide' in the content-type podcast. I want to show/hide the 'podcast' webform block based on the value present in the field_podcast_discussion_guide field for each node of content type 'podcast'. If the field_podcast_discussion_guide field has a value, show the 'podcast' webform block, and if this field doesn't contain a value hide the block. How to do this in Drupal 9?

berliner avatar
bd flag
Welcome to Drupal Answers! This question doesn't exactly meet our guidelines. You should show that you did some research and include in the question what you have tried so far. Please have a look at the [Help Center](https://drupal.stackexchange.com/help) and make sure to read [How do I ask a good question?](https://drupal.stackexchange.com/help/how-to-ask).
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.