Hi bit of a newbie, I will try to explain this as best i can

I have a Webform displayed as a block on a content node.

Using Webform Rules i would like to unpublish the content node on the submission of the Webform and send an email to the node author.

I have an unpublishing component that i am using with another rule to schedule an unpublish event but when i try to use it with the Webform Rules module it unpublishes the webform itself and the email tokens in the email are all related to the webform

So i think what i am asking is how do I pass the correct node:id and author:id to the component

Rule is set up like this:
Event - After a webform has been submitted

Condition - Webform has name
Parameter: The form id of the submitted form: [node:nid], Webforms: Contact Seller

Action - rule set: Unpublish Content
Parameter: Content to unpublish : [node], User: [user]

Component has 2 parts set up like this:
Conditions - Content is published
Parameter: Content: [content-to-unpublish]

Actions - Unpublish content
Parameter: Content: [content-to-unpublish]

Conditions - None

Actions - Send Mail

Thanks
Scott

CommentFileSizeAuthor
#2 Rule Export.txt2.08 KBscareyclott

Comments

scareyclott created an issue. See original summary.

scareyclott’s picture

StatusFileSize
new2.08 KB
scareyclott’s picture

Status: Active » Closed (outdated)