Is there a way to hide a field from the UI legend?

is there a way to hide a field from the UI legend?
I have some fields with very long values, and they overflow the screen width
thanks