CCK ViewField and Webform

mrtbc - November 14, 2008 - 11:35

Hi,
I'm something of a Drupal newbie. I hope I'm on the right track with what I'm trying to achieve.

I am using the CCK ViewField module to embed a View within all Nodes. The ViewField View displays a webform.

I have created three hidden webform components within the webform (formfield1, formfield2, formfield3) which need to be automatically populated with values from three CCK fields in the main node (nodefield1, nodefield2, nodefield3).

I can see that you are able to specify Arguments in the Node's ViewField Webform settings, and that the three webform components can have a default value - but I'm not sure how to pass the values across.

Any help would be very gratefully received.

Thank you.

still not sure what your are trying to do

justageek - November 14, 2008 - 16:30

"I can see that you are able to specify Arguments in the Node's ViewField Webform settings, and that the three webform components can have a default value - but I'm not sure how to pass the values across."

Are you saying that the hidden fields do not get values?
Where do the forms get posted, are they standard drupal forms?

Thanks very much for

mrtbc - November 15, 2008 - 15:34

Thanks very much for replying.

I guess what I mean is that I can see that arguments can be passed, but I'm not quite sure how to do it.

What I'm really after is a quick "how to" guide on passing values from a node (cck fields) to an embedded webform within that node (webform components) if possible please.

 
 

Drupal is a registered trademark of Dries Buytaert.