AnsweredAssumed Answered

Delete content category assignment with JavaScript

Question asked by zputnoky on Jun 12, 2017

Dear All,

 

In our mock-up I use rules to notify users about new content. These rules are checking content type and assigned category.

Here is an example: when the content has READY category assigned, the rule fires a JavaScript which then sends a notification email to a user group. When the content has UPDATED category, another rule send another notification mail to the users.

The problem I have is that these rules are running when the content is updated. So when the UPDATED one is assigned, it fires the READY and UPDATED rules in the same time.

 

I would like to modify the JavaScript to check the category assigment and remove READY when the user is assigning UPDATED.

 

I searched around but found no examples.

 

Can anyone help me out?

 

Regards,

 

Zsolt Putnoky

Outcomes