I was trying to setup a rule to do this via the UI.

I cannot select any of the attributes. I can't select any of the fields within the node selection for example.

Am I missing something?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

SocialNicheGuru created an issue. See original summary.

dasjo’s picture

Status: Active » Postponed

Rules 8.x is still in development, postponing therefor.

SocialNicheGuru’s picture

so the UI is not the proper way to use this module yet?

acrollet’s picture

In order to select node fields, you need to use the 'Entity is of bundle' condition - see this screenshot for an example with a 'page' node:

edit entity is of bundle condition

The UI is somewhat usable, but some things work and some don't...

acrollet’s picture

One other note, it's currently necessary to clear caches after editing rules for new conditions/actions to take effect.

SocialNicheGuru’s picture

I have two address fields field_address field_address1.

field_address1 is hidden?

i want to set field_address1 = field_address

This was easy with Rules in D7.

I am stuck because the UI does not give me a way to drill down into the fields in the node. Unless I am missing something.

acrollet’s picture

@SocialNicheGuru did you try using the 'entity is of bundle' condition? If you do and click the 'switch to data selection' button in the 'set data value' action, you should be able to see your fields. Be aware that you probably can't do exactly what you're trying to do yet - rules for D8 still needs a lot of contribution of effort. See http://d8rules.org/

C.E.A’s picture

@acrollet

Can you please tell me on how to select webform fields and not node fields within the rules ?

I tried the below with no success:

I understand that to make the fields of an entity available via the data selector, you should add a condition of entity is of bundle and this what i exactly did:

CONDITION
Entity id of bundle:

Entity: webform_submission
Type: webform_submission
Bundle: my_webform_ID

And now if you create an action: add a variable, you still cannot see the field of the webform listed in the data selector.

Any idea/help please ???

TR’s picture

Status: Postponed » Fixed

The original question was answered by #4 and #8.

@C.E.A.'s question in #8 was addressed in great detail in #2983171: Some but not all fields are available using the data selector. In short, the answer is that what webform calls "fields" are NOT Drupal fields, so this question does not apply to C.E.A.'s situation.

TR’s picture

Status: Fixed » Closed (fixed)