You’ll want to store a value into a cookie rather than a whole method.
Then depending on the value of the cookie (or whether it simply exists) you’ll know whether to show the field or not by checking the cookie value when the page is loaded.
0
solved Store a css class into a cookie