Take a field value, mash it with HTML and save into a new field

by David Lozzi   Last Updated January 12, 2018 23:07 PM

I think Rules is the best way here but I can't figure it out. I'm looking to automate creating the embed code from Eventbrite. The user can specify the Event ID and then I'd create the embed code in a new field. Easy enough I thought.

Right now, I don't know how to get the fields in the Rule. field_eventbrite is the rich text field I want to store the embed code in. field_eventbrite_id is the ID provided by the user. enter image description here

When it runs it logs the error Drupal\rules\Exception\EvaluationException: Unable to get variable @node.node_route_context:node:field_eventbrite, it is not defined. in Drupal\rules\Engine\ExecutionState->getVariable() (line 103 of /home/site/wwwroot/modules/contrib/rules/src/Engine/ExecutionState.php).

If I try selecting it like node:field_eventbrite it errors out before I can even save it.

Tags : 8 rules

Related Questions

Clone nodes and change fields with Rules and VBO

Updated May 20, 2015 20:03 PM