Keep Text Field Value

If I created a text field using a html code for example , whenever the form refresh or any field with option fields on keyword change is selected… the value inside the text field will disappear… it there to way keep the value…