K2 Custom Control Property not updating from script file

  • 15 November 2022
  • 4 replies
  • 21 views

Badge +2

Might be I am missing very small thing. But scenario is not working.

 

Below highlighted is the custom control. With Category Display

27136iA25C654072A24094.png

 

 

I dragged two controls on item view as below.

27138i8FF7D4A3F4086C8D.png

 

 

What I want to achieve is.

On button click rule. I am setting custom control properties and just displaying values in message box.

 

27137i254BAEC09517E4B1.png

 

27139iABCB22F04128E438.png

 

 

In the message box, its displaying old value not the new one.

 

script files also attached if anyone can help please.


4 replies

Userlevel 1
Badge +7
Are you first clearing out the old value?
Badge +2

Hi,



thanks for your response.



first i am setting properties of the custom control in a rule (using set property).


then i am displaying that property in message box. but its showing old value. its not showing the value which i am assigning from set property rule.



Regards,

Userlevel 1
Badge +7
Try setting the property to blank (to clear the old value) before setting the new value.
Badge +2

Hi,



i clear the values. but still not working.



Regards,

Reply