Solved

How to change control from Toolbar button to be Image in K2 Smartform

  • 19 June 2019
  • 5 replies
  • 95 views

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?

icon

Best answer by Manju01 20 June 2019, 22:43

View original

5 replies

Badge +9

Hi Sumit

 

See attached related post, According to this community article below, it is not posible 

 

https://community.k2.com/t5/K2-Blackpearl-Forum-Posts/SmartForms-Toolbar-Icons/td-p/62085

 

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.

 

Best Regards

Elvis

 

[K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member]

Hi  @Sumit;

 

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-action-to-the/ta-p/88752)

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)

 

Regards;

Widson.

I try to debug the K2 smart forms to getting the control id of the Toolbar button. Then I have copied the TypeId and Properties of Image Control. Then update these properties in table Form.Control in K2 database with the copied data by the control id of toolbar button. It work. The K2 rule does not lost and function can work normally.

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.

Thank you for your solution.

Reply