Skip to main content
17-Peridot
November 11, 2021
Solved

Value Display - State Format

  • November 11, 2021
  • 1 reply
  • 1294 views

I want to show multiple icons with respect integer using "Value Display and State Formatting".

Ex:

1 - Icon 1

2 - Icon 2

3 - Icon 3

Others - Icon 4

 

But, I don't want to display integer value(1, 2, 3, Others). 

Best answer by Mukul_467346

You have two options
1) use a legacy value display widget, it will automatically display the icon only on the basis of value.

2) if you are using ptcs value display widget, you can apply a tweak. go to style properties of that widget go to Base->item value->color. put the color value as white(matching with your panel/container background color). In this way, the user will not be able to see the value. it will just bring up the icon. Make sure the style definition which you create and put for every value in state definition only has the required icon and no other background/text color. 

1 reply

1-Visitor
November 11, 2021

You have two options
1) use a legacy value display widget, it will automatically display the icon only on the basis of value.

2) if you are using ptcs value display widget, you can apply a tweak. go to style properties of that widget go to Base->item value->color. put the color value as white(matching with your panel/container background color). In this way, the user will not be able to see the value. it will just bring up the icon. Make sure the style definition which you create and put for every value in state definition only has the required icon and no other background/text color. 

17-Peridot
November 11, 2021

Thanks for your suggestions.