# Set Text Value When Checked event problem

**URL:** <http://forum.squareline.io/t/set-text-value-when-checked-event-problem/5433>\
**Category:** Bugs\
**Created:** [January 21, 2025, 2:20pm UTC](http://forum.squareline.io/t/set-text-value-when-checked-event-problem/5433 "2025-01-21T14:20:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![weppler](http://forum.squareline.io/letter_avatar_proxy/v4/letter/w/e68b1a/32.png) [@weppler](http://forum.squareline.io/u/weppler)\
**Post date:** [January 21, 2025, 2:20pm UTC](http://forum.squareline.io/t/set-text-value-when-checked-event-problem/5433/1 "2025-01-21T14:20:14Z")

</div>

I have created a small (2 widget) project with a switch and a label.  
The checked state of the switch has an event action of SET TEXT VALUE WHEN CHECKED acting on the label.

It works as expected in Play mode, but when the project is initially loaded, the Console shows ERROR: Function not found: SET TEXT VALUE FROM CLICKED.

[BUG.zip](http://forum.squareline.io/uploads/short-url/jDcLgvl0lqb8tC7eqFebLX4NlCg.zip) (3.7 KB)

- SquareLine Studio version: 1.42 & 1.50  
-Operating system: Windows 11 (24H2)  
-Target hardware: Raspberry Pico

---

<div class="post-metadata">

**Author:** ![SquareLine\_Support](http://forum.squareline.io/user_avatar/forum.squareline.io/squareline_support/32/47_2.png) [@SquareLine\_Support](http://forum.squareline.io/u/SquareLine_Support)\
**Post date:** [January 22, 2025, 4:57pm UTC](http://forum.squareline.io/t/set-text-value-when-checked-event-problem/5433/2 "2025-01-22T16:57:56Z")

</div>

Hi, Thank you for reporting the problem, we will investigate it. If you want the label content to change when the switch is toggled, I recommend the following method instead. I’ve attached the image.

 ![image](http://forum.squareline.io/uploads/default/original/2X/2/214ce42888d3cc3c5d713320e491c60b434a7bcb.png)

---

<div class="post-metadata">

**Author:** ![weppler](http://forum.squareline.io/letter_avatar_proxy/v4/letter/w/e68b1a/32.png) [@weppler](http://forum.squareline.io/u/weppler)\
**Post date:** [January 22, 2025, 5:53pm UTC](http://forum.squareline.io/t/set-text-value-when-checked-event-problem/5433/3 "2025-01-22T17:53:27Z")

</div>

Thank you for you quick attention.  
FWI - There is no load warning as originally designed with SQS v1.40
