After I change the toolbar button to be image, the rule on click will be lost.
The toolbar button relate with on click event only. And the image control have the click event too. Why the rule K2 lost?
I need to change to Image. Because it have comment from user about button style. So I need to apply image to be button for beautiful issue.
Is have solution to resolve this issue?
Solved! Go to Solution.
See attached related post, According to this community article below, it is not posible
Should you find the information from the article useful or leading you to the answer please mark as "Solution and/or Kudo", as it will assist other k2 developers with relevant information in the near future.
[K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member]
I presume you are on k2 4.7, if that's the case then read through this kb(https://community.k2.com/t5/K2-blackpearl-Articles/Rule-in-non-base-state-disappears-after-adding-an...)
And the solution for the above would be to install the K2 4.7 March 2018 Cumulative Update which contains updates and fixes for issues reported in K2 4.7 products(https://help.k2.com/kb002261)
Also check out with possible workaround stated here under views section i find find the issue very relative (https://help.k2.com/kb001573)
Delete the event part of the rule (on click in this case), give a nice name to the rule and save it as an independent rule. Now you change your control to image control. On click event of the new image control call your new independant rule.