Object becomes visible only when another view is opened

Hello,

I have a docked view that shows some text and a few other things, how do I make it so the text changes when a different view is opened but still uses the same docked view.

Are you trying to implement a Header that shows the title of the current window?
If so you can read the tag System/Client/System/CurrentWindow.

Is this in Perspective, or Vision?

If Perspective, you could send a message when a View opens, then configure a message listener in the docked View to change the desired text when a message of a specific type is heard.

Hi yes I am using perspective, how exactly would you do this I am very new to ignition especially perspective.

See https://docs.inductiveautomation.com/display/DOC80/Component+Message+Handlers.