My use case is a list of events and I want to show a label on the views item, if the event is already booked out. Therefore I would render the status of the referenced event registration webform.

The registration webform ist connected to each event node via the Webform Node module (submodule of Webform). The view consists of nodes of the type event which contains an entity reference field to the resgistration webform.

I have installed the Webform Views Module. Now I want the view to render this entity reference field as the status of the webform, meaning open or closed.

The problem is, that the views UI for the field rendering only lets me select from

  1. URL of the Webform
  2. the whole webform
  3. a link to the webform

The Link option provides a text input field for YAML code. Maybe I could use this? But I don't know how ...

Any ideas, how I can get the view to render the status of the referenced Webform?

1 Answer 1


Since the webform is added as a reference on the node, you have to add a relationship in views, in order to get the webform's fields.

Go to relationships and add the webform reference, then the status field should be available as a field.

  • Thanks for your suggestion, but unfortunately it doesn't work. I added the relationship and the input fields of the webform appeared in the fields list. But there is no field for the status of the webform (if it's closed, because it reached a set limit of submissions).
    – anna-b
    Jan 10, 2020 at 9:40
  • Ok, then the status field is probably not made available in views.
    – user72672
    Jan 10, 2020 at 9:43
  • I think so too. Therefore I posted an issue at the Webform Views Module drupal.org/project/webform_views/issues/3105602
    – anna-b
    Jan 10, 2020 at 10:06

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.