0

I am trying to set up a Rule to check if a user has added one of several states to an address field in a Profile2 profile. So I thought I'd do a Data Comparison.

  1. I created a new rule called "Profile Save"

  2. Added an Event from the drop down menu: "After saving a new profile"

  3. Added "Entity has field"

    Parameter: Entity:[profile2], Field:field_address

  4. Added AND and Add Condition,

  5. chose "Data comparison"

But the Data Comparison form is all wonky. The drop down has div tags in it. The "Data Selectors" isn't active.

Do I have to already know what the Data selector should be? Or should it be available in the drop down?

(See images)

Any idea what I'm doing wrong? Is this a known issue with Data Comparison.

New Rule Overview Add New Condition: Data to Compare

closed as off-topic by Mołot, Krishna Mohan, Free Radical, kiamlaluno Jan 9 '15 at 16:38

  • This question does not appear to be about Drupal within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    This question appears to be off-topic because it is a bugreport and should be posted in appropriate issue queue, not here. Please don't split the efforts to fix bugs. Keeping bugs in one place (their issue queues) helps people to find each other and work on them together. Splitting them across many sites makes fixing slower and less reliable. – Mołot Nov 18 '14 at 22:50
  • My apologies. The reply from areynolds suggests the issue is already addressed in an bug report at drupal.org so I guess I shouldn't duplicate. – Christopher Dunning Nov 19 '14 at 0:11
1

That data selection interface often has jQuery Update-related issues; for the most part those should be solved by using the dev version (at the time of this answer) of jQuery Update and the current stable of Rules (7.x-2.7) as recommended by https://www.drupal.org/node/1810656#comment-9298435. That issue also has a good history of these problems.

Another issue appears to describe your exact issue and has a patch. It sounds like that resolved the problem, so future visitors might try that as well after seeing if updating jQuery Update doesn't work.

  • I have Rules 7.x-2.7 and just downloaded the dev version of jQuery (7.x-2.4+5-dev), but am still getting the same behavior. – Christopher Dunning Nov 19 '14 at 2:13
  • I applied the patch at #23 in the Rules>>Issues page you linked to and it cleared up the problem. – Christopher Dunning Nov 20 '14 at 15:15
  • Awesome, thanks for posting back, updated the answer to reflect the success of that patch for you. – areynolds Nov 20 '14 at 19:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.