How can I use conditionals to show or hide a node component on my webform.
Conditionals are doing their job, but not for node components.

Comments

Maurice Buts created an issue. See original summary.

liam morland’s picture

Are you using module webform_node_element? This should probably be in the queue for that module.

Maurice Buts’s picture

I use webform 7.x-4.17 and Webform Node Element 7.x-1.2.
My project is a time-reservation in stores.
On my webform I want to display a node, which represents the actual occupation of the store chosen by the visitor.
So I am searching a way to specify a specific node which has a title which is specified within the webform as a selected option.
Until now I was trying to achieve this by loading all my 'store'-nodes in my webform and only make the node which corresponds with the user's choise visible.
That is the basis for my question.
Or is there a possibility to specify the node to display based on the user's choise ?

liam morland’s picture

Title: Node Component » Conditionals not showing and hiding Node Component
Project: Webform » Webform Node Element
Version: 7.x-4.17 » 7.x-1.2
Priority: Major » Normal
bonchak’s picture

Hi,

I had a similar case and webform node is not conditional. So I came up with a views solution. I create a views and use an embedded view component ( a module) and conditionals work as expected. This is tested for D. 7