stringFormat

I would like to format the text in a multistate indicator when binding it with a tag. I notice there’s a function stringFormat but I can’t find any documentation for it. I’ve tried using it and the best I’ve managed is an output that looks something like this: “[23.5465,Good]” What I’d like is 2 decimal points fixed (source tag is a float) plus a percentage sign. Thanks

You can bind the text property of the component to an expression like this:numberFormat(34.8, "#0.00'%'")That returns 34.80%. You can find more information on the function here:

inductiveautomation.com/supp … format.htm