Numeric Entry Field (editable only if security level match)

Hello everyone, I want to integrate numeric entry fields into a new view, but I want to make these numeric entry fields only editable when you Meet the desired security level.

Could you suggest me a way to achieve this?

Bind the enabled property to the appropriate session.props.auth property and check if it matches your requirements.


This uses roles, but there's a securityLevels property as well.
There might be a more performant way to do this with just an expression. I'll let you figure that out.

1 Like

You can use hasRole - Ignition User Manual 8.1 - Ignition Documentation.


Yep, that's probably a better way to do it.
I was too lazy to check the expression functions' page to find the proper one :face_with_raised_eyebrow:

1 Like

Thanks to both of you!

1 Like