it looks like Dhananjay Kumar already gave you a working answer below, but just to clarify, "get static value of a text field" isn't really thinking about it in the right order. A read-only text field just displays a value you feed in, it doesn't "have…