I'm trying to create a Rule that will create a comment on another post when a node is created. I would like the comment to contain a number of fields from the original post in a formatted manner.
For example: I have a content type called "Project Status Reports" which has 3 text area fields: field_preparation
, field_methods
and field_outcomes
and a node reference field: field_project_node
.
When a Project Status Report is created, the user selects a node to associate it with (in field_project_node
) and fills the 3 text areas.
I would like to create a Rule that gets triggers when a Project Status Report is created, which will then make a comment on the node referenced in field_project_node
. I would like the body of the comment to look something like this:
<h4>Preparation</h4>
<p>[node:field_preparation]</p>
<h4>Methods</h4>
<p>[node:field_methods</p>
<h4>Outcomes</h4>
<p>[node:field_outcomes]</p>
I have created the Rule successfully and have it triggering however I am unable to work out how to fill the Main Body Text
of the comment with formatted text which will do the replacements. All I can seem to do is either add static html or have it post a single field.
Is this possible? Thanks in advance