SumitSu
Scholar

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

Jump to solution

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?

0 Kudos
Reply
5 Replies
ElvisJacob
Novice

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

Jump to solution

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]

0 Kudos
Reply
Widson
Novice

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

Jump to solution

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...)

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.

0 Kudos
Reply
SumitSu
Scholar

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

Jump to solution
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.
0 Kudos
Reply
Manju01
Novice

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

Jump to solution

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.

Reply
SumitSu
Scholar

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

Jump to solution

Thank you for your solution.

0 Kudos
Reply