Field type property is set to hidden in html source for all fields on form

I have a web form that I am trying to use the javascript type property to loop through all the fields and determine the type of each field. From there I want to validate the field to make sure it isn’t null based on the type of field it is. The problem is that every field on my form is showing the type as hidden even when the field isn’t hidden (and it is not computed either).

If I look at the source in the browser I see where Notes is setting the following line

Does anyone know how to fix this. I don’t know a lot of HTML so I do have “Generate HTML for all fields” selected but it didn’t fix the problem even when I unchecked it.

Subject: Field type property is set to hidden in html source for all fields on form

I figured it out. If the document is not in edit mode, then the field type returns hidden. I am a moron, sorry for the post.

Subject: RE: Field type property is set to hidden in html source for all fields on form

Dont be so hard on yourself :-). All of us have one of those days !