K2 dropdown change event using jquery

  • 23 October 2020
  • 1 reply
  • 30 views

While changing K2 dropdown option ,I wants to perform some operations with Old value. But in k2 rules we are not able to capture that value. Because K2 has only changed rule.

Example:

Dropdown values : “one” , “two” , “three”

If I change the dropdown value from “one” to “two” then I wants to trigger a button  click event from JavaScript so that will call some K2 rules  once that's done then the dropdown can change to “two”.

Please help.


1 reply

Badge +6

You can make use hidden textbox to check the previous value, do action (execute another rule) and replace the old value in hidden textbox with new value from dropdownlist.  The rule should execute in sequence (modifier “Then” ). 

 

 

Reply