Skip to main content
5-Regular Member
January 2, 2023
Solved

Reset text in label

  • January 2, 2023
  • 1 reply
  • 1761 views

Hi!

As I couldn't find any thread to this issue I start this new one: I have a mashup for quality check purposes. The mashup takes quality measurements and gives them to a service, where the check runs. The result is then illustrated on the mashup, writing "Good" or "Bad" on a label text. I have a seperate button for resetting the input to default value (text boxes). Unfortunately I couldn't find any possibilty to reset the text on the labels. Ideally the text disapears when clicking the reset button.

 

Thanks in advance!

 

Best answer by jensc

Hello,

 

There doesn't seem to be a way to reset a label to a default value similar to how you can reset the text in a text box.

What you could do would be to when pressing the reset button, run an "Expression" that contains your default value and set the output from it to you label.

 

Something like this:

jensc_0-1672649751519.png

However, if you want to use multiple different values for your label, then use the "Event Routers" in-between your expression and label.

 

Something like this:

jensc_1-1672649871178.png

 

Hope this helps you.

 

Regards,

Jens

1 reply

jensc17-PeridotAnswer
17-Peridot
January 2, 2023

Hello,

 

There doesn't seem to be a way to reset a label to a default value similar to how you can reset the text in a text box.

What you could do would be to when pressing the reset button, run an "Expression" that contains your default value and set the output from it to you label.

 

Something like this:

jensc_0-1672649751519.png

However, if you want to use multiple different values for your label, then use the "Event Routers" in-between your expression and label.

 

Something like this:

jensc_1-1672649871178.png

 

Hope this helps you.

 

Regards,

Jens

5-Regular Member
January 9, 2023

Hi Jens,

 

thanks for your support - the approach with the Event Router helped.

 

Regards, Dominik