This topic is locked

Blank fields?

12/18/2006 7:54:43 PM
ASPRunnerPro General questions
G
grinningdog author

Hi

I've got an add form that works well. I've got two text fields in it that have a default value (basically giving instructions to the user) but I'd like that to disappear when the user selects the field.
On a normal form I'd use something like ONFOCUS="this.value=''" but I'm not sure if this is possible, or where I'd put it.
Also, where would I alter the font size on my add form? Is it in the template? Basically I want to say Put your membership number (compulsory)
Regards

Bob

G
grinningdog author 12/18/2006

Ooops, answered the second question myself. Sorry.

J
Jane 12/19/2006

Hi,
you can do it editing generated include/commonfunctions.asp file manually.

Find this line:

response.Write "<input type=""text"" name=""" & cfield & """ " & GetEditParams(field,"") & " value=""" & my_htmlspecialchars(value) & """>"



and replace it with this one:

response.Write "<input type=""text"" name=""" & cfield & """ " & GetEditParams(field,"") & " value=""" & my_htmlspecialchars(value) & """ onclick=""this.value=''"">"
G
grinningdog author 12/19/2006

Perfect. Thank you very much Jane