DIW and FPFieldHTML

M

Mike Stumpo

When creating the editing pages in FP2003, I would like
to have certain field non editable (like the dateentered,
or enteredby fields), but have the other fields editable.

I removed the webbot code (removing the HTML) for a field
to just:

<%=FP_Field(fp_rs,"dateentered")%>

and then add <%=FP_FieldHTML(fp_rs,"dateentered")%> in a
hidden field to carry the data to the database.

Is this correct or am I missing something?
 
T

Thomas A. Rowe

That is one way, the other is to load the form field, and then switch to Code / HTML view and mark
the field as read only by add the word readonly

<input type="text" name="DateEntered" size="10" value="<%=fp_rs("dateentered")%>" readonly>
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
M

Mike stumpo

Sweet,

then I can just add css to the field to hide the field
border.

Thanks.

P.S. I did not know about the readonly option. What texts
can you recommend to learn more about those kinds of
options.
-----Original Message-----
That is one way, the other is to load the form field,
and then switch to Code / HTML view and mark
the field as read only by add the word readonly

<input type="text" name="DateEntered" size="10" value="<%
=fp_rs("dateentered")%>" readonly>
 
M

MD Websunlimited

Mike,

If you wish to support NS 4 or other browsers "readonly" will not work. Instead use onfocus to change to another field.

<input type="text" onfocus="this.form.T2.focus();" >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top