How do I get a field (of a custom type) to appear in the Data Selector?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
dsearle's picture

Hi everybody, I'm using a development version of the WebSite Screenshot module which creates a new Formatter and Widget for fields to display screenshots (powered by a screenshot service) of URLs entered into the Drupal system. I have the URLs coming into one text field and I want to copy this value into the custom field created using the Screenshot type. My problem lies with the 'Set a Data Value' action. I choose 'entity has field' as a condition and choose the field in particular I want Rules to know about however in the 'Set a Data Value' I choose the Data Selector and my field doesn't appear in the dropdown. The dropdown has all the other fields, title etc and custom fields too but not my new Screenshot field.

I've looked into the Screenshot module code and I don't think an entity is being created at all. Does it need to? I'm very new to Drupal programming so any guidance around what Rules requires to end up in the Data Selector listing would be very useful.

If required I can list the exact steps to reproduce as this is all contrib module reproducable.

Thanks in advance,

Dave

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: