The usual way of defining a form-only field (one not linked to a database column) is as follows:
tagname = DISPLAYONLY.fieldname TYPE datatype
The TYPE clause is required. Review the attribute statements and recompile the form. (The keyword FORMONLY is used in forms that the 4GL compiler compiles. Its meaning is the same as DISPLAYONLY.)