LogicMachine Forum
string value display - Printable Version

+- LogicMachine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visu (https://forum.logicmachine.net/forumdisplay.php?fid=24)
+--- Thread: string value display (/showthread.php?tid=6287)



string value display - Simuzer - 01.02.2026

hi,

How can I display a formatted string expression?

there is Only "Numeric value display". Bu i need "string value display". (250 byte string)


RE: string value display - admin - 02.02.2026

Use Text input widget in read-only mode.


RE: string value display - toujour - 17.04.2026

Is it possible change the color of the text (read only option) from the value of an other boolean object ?


RE: string value display - Daniel - 20.04.2026

You can do it same like this example.
https://forum.logicmachine.net/showthread.php?tid=6211&pid=40642#pid40642


RE: string value display - admin - 20.04.2026

You don't need any scripts. Simply use Switch widget in read-only mode. Set Display mode to "Value", Shape to "No shape". Adjust On/Off state text and color as needed.


RE: string value display - toujour - 21.04.2026

(20.04.2026, 08:33)admin Wrote: You don't need any scripts. Simply use Switch widget in read-only mode. Set Display mode to "Value", Shape to "No shape". Adjust On/Off state text and color as needed.

Uhm....now I try (I have the main object from a 250byte string.....so the text change from the event)


RE: string value display - admin - 21.04.2026

Then you need to use Custom JS. Change widget ID (46), listening address (0/0/1) and colors as needed.
Note that you need to switch to the User view for Custom JS to work.

Code:
Visu.on('widget-ready', 46, ({ widget }) => {   const el = widget.getCompactModeEl()   widget.listen('0/0/1', (value) => {     el.style.color = value ? '#FF9900' : '#0099FF'   }) })