Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
#4 | Edit Condition: Entity is of bundle | BAT d8 2018-01-22 14-34-59.png | 67.41 KB | acrollet |
Comments
Comment #2
dasjoRules 8.x is still in development, postponing therefor.
Comment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedso the UI is not the proper way to use this module yet?
Comment #4
acrollet CreditAttribution: acrollet commentedIn 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:
The UI is somewhat usable, but some things work and some don't...
Comment #5
acrollet CreditAttribution: acrollet commentedOne other note, it's currently necessary to clear caches after editing rules for new conditions/actions to take effect.
Comment #6
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI 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.
Comment #7
acrollet CreditAttribution: acrollet commented@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/
Comment #8
C.E.A CreditAttribution: C.E.A commented@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 ???
Comment #9
TR CreditAttribution: TR commentedThe 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.
Comment #10
TR CreditAttribution: TR commented