PC Review


Reply
Thread Tools Rate Thread

Default text in form field

 
 
=?Utf-8?B?QmV2ZXJseS1UZXhhcw==?=
Guest
Posts: n/a
 
      4th May 2006
Hello,

I have a short form and in the form fields, I would like some text to be in
the field before they click in the field. For instance, I want the first box
to have "First Name" in the field. In the message field, I want "Please type
your message". Similar to what you see on www.burkettdental.com - Does
anyone know how to do this in Frontpage?

Thanks,
Beverly
 
Reply With Quote
 
 
 
 
John Malone
Guest
Posts: n/a
 
      4th May 2006
Go to Text Box Properties.....
Right click on box select
"Form Field Properties"
Set the "Initial Value" to
"What ever you want in the box"

Same with Text Area

HTH
--
John Malone
==============
"Beverly-Texas" <(E-Mail Removed)> wrote in message
news:125F572F-50E5-47C6-B769-(E-Mail Removed)...
| Hello,
|
| I have a short form and in the form fields, I would like some text to be
in
| the field before they click in the field. For instance, I want the first
box
| to have "First Name" in the field. In the message field, I want "Please
type
| your message". Similar to what you see on www.burkettdental.com - Does
| anyone know how to do this in Frontpage?
|
| Thanks,
| Beverly


 
Reply With Quote
 
=?Utf-8?B?R2lnYWJ5dGU=?=
Guest
Posts: n/a
 
      5th May 2006
Now your asking,
does anyone know how to put that text in a box, but then
as you see in search forms, when you click on the box to enter text, the
standart text of for example "type your search word here" disappears and then
you are able to enter your search text...

thanx

greetz,

Barry alan

"John Malone" wrote:

> Go to Text Box Properties.....
> Right click on box select
> "Form Field Properties"
> Set the "Initial Value" to
> "What ever you want in the box"
>
> Same with Text Area
>
> HTH
> --
> John Malone
> ==============
> "Beverly-Texas" <(E-Mail Removed)> wrote in message
> news:125F572F-50E5-47C6-B769-(E-Mail Removed)...
> | Hello,
> |
> | I have a short form and in the form fields, I would like some text to be
> in
> | the field before they click in the field. For instance, I want the first
> box
> | to have "First Name" in the field. In the message field, I want "Please
> type
> | your message". Similar to what you see on www.burkettdental.com - Does
> | anyone know how to do this in Frontpage?
> |
> | Thanks,
> | Beverly
>
>
>

 
Reply With Quote
 
John Malone
Guest
Posts: n/a
 
      5th May 2006
OK That can be done too!
Using JavaScript.

In the <head> area

Replace
</head>

with------------------------

<script language="javascript" type="text/javascript">
<!--
function clearField(object) {
object.value ="";
}
function findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
//-->
</script>
</head>
=========================================
Then in the body...... you can put this (Where you want it)
=========================================

<table><td valign="top">
<table border="1" cellpadding="0" cellspacing="0" width="255">
<tr>
<td><br>
<p align="center">
<b><font size="4">Header Info Here</font></b></p>
<br>
<table width="255" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="35"></td>
<td width="179">
<form action=http://YOUR_PLACES_HERE.cvs method="post">
<table width="150" border="0" cellpadding="0" cellspacing="5">
<tr valign="top">
<td valign="middle">
<input name="contact_greeting" type="text" class="form"
onFocus="clearField(this.form.contact_greeting);" value="Your Name?"
size="24"></td>
</tr>
<tr valign="top">
<td valign="middle">
<input name="contact_email" type="text" class="form"
onFocus="clearField(this.form.contact_email);" value=" E-mail Address"
size="24"></td>
</tr>
<tr valign="top">
<td valign="middle">
<input name="contact_home_phone" type="text" class="form"
onFocus="clearField(this.form.contact_home_phone);" value=" Phone Number"
size="24"></td>
</tr>
<tr valign="top">
<td valign="middle">
<textarea name="contact_comment" cols=28 rows="7"
wrap="HARD" class="form" onFocus="clearField(this.form.contact_comment);">
Your message</textarea></td>
</tr>
<tr valign="top">
<td valign="middle">
<input type="submit" name="Submit" value="Submit" class="form">
<input type="hidden" name="formname" value="71005028"></td>
</tr>
</table>
</form></td>
</tr>
</table>
==========================
Just copy above and paste into a blank page.

Is that more like you wanted?

--
John Malone
==============
"Gigabyte" <(E-Mail Removed)> wrote in message
news:EE1AE6ED-3725-4405-A1EF-(E-Mail Removed)...
| Now your asking,
| does anyone know how to put that text in a box, but then
| as you see in search forms, when you click on the box to enter text, the
| standart text of for example "type your search word here" disappears and
then
| you are able to enter your search text...
|
| thanx
|
| greetz,
|
| Barry alan
|
| "John Malone" wrote:
|
| > Go to Text Box Properties.....
| > Right click on box select
| > "Form Field Properties"
| > Set the "Initial Value" to
| > "What ever you want in the box"
| >
| > Same with Text Area
| >
| > HTH
| > --
| > John Malone
| > ==============
| > "Beverly-Texas" <(E-Mail Removed)> wrote in
message
| > news:125F572F-50E5-47C6-B769-(E-Mail Removed)...
| > | Hello,
| > |
| > | I have a short form and in the form fields, I would like some text to
be
| > in
| > | the field before they click in the field. For instance, I want the
first
| > box
| > | to have "First Name" in the field. In the message field, I want
"Please
| > type
| > | your message". Similar to what you see on www.burkettdental.com -
Does
| > | anyone know how to do this in Frontpage?
| > |
| > | Thanks,
| > | Beverly
| >
| >
| >


 
Reply With Quote
 
John Malone
Guest
Posts: n/a
 
      5th May 2006
More Info.....
In FrontPage 2003.... (Using Behaviors)

First put the text in the "Text Box" (or Area)
==============
How?
Go to Text Box Properties.....
Right click on box select
"Form Field Properties"
Set the "Initial Value" to
"What ever you want in the box"
========================
Then highlight the box (by clicking in it (Once))
Go to behaviors panel (Insert drop down)
Then to "Set Text" then select
"Set Text of Text Field"
New Window
(The text area you have highlighted should be in the top box)
Then in the "New Text" area insert a space (nothing else)
Click OK
You can now see the new behavior in the window to the right.
In the events column (Should be onclick) use the Drop-Down
to select "onfocus"
=======================
Your done!
Preview and you should see the "default text" in the box.
When you insert the cursor (or focus) in it.... the text is gone.

8)
Have a nice Day!
--
John Malone
==============
"John Malone" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
| OK That can be done too!
| Using JavaScript.
|
| In the <head> area
|
| Replace
| </head>
|
| with------------------------
|
| <script language="javascript" type="text/javascript">
| <!--
| function clearField(object) {
| object.value ="";
| }
| function findObj(n, d) { //v4.01
| var p,i,x; if(!d) d=document;
| if((p=n.indexOf("?"))>0&&parent.frames.length) {
| d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
| if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
| x=d.forms[i][n];
| for(i=0;!x&&d.layers&&i<d.layers.length;i++)
| x=findObj(n,d.layers[i].document);
| if(!x && d.getElementById) x=d.getElementById(n); return x;
| }
| //-->
| </script>
| </head>
| =========================================
| Then in the body...... you can put this (Where you want it)
| =========================================
|
| <table><td valign="top">
| <table border="1" cellpadding="0" cellspacing="0" width="255">
| <tr>
| <td><br>
| <p align="center">
| <b><font size="4">Header Info Here</font></b></p>
| <br>
| <table width="255" border="0" cellspacing="0" cellpadding="0">
| <tr>
| <td width="35"></td>
| <td width="179">
| <form action=http://YOUR_PLACES_HERE.cvs method="post">
| <table width="150" border="0" cellpadding="0" cellspacing="5">
| <tr valign="top">
| <td valign="middle">
| <input name="contact_greeting" type="text" class="form"
| onFocus="clearField(this.form.contact_greeting);" value="Your Name?"
| size="24"></td>
| </tr>
| <tr valign="top">
| <td valign="middle">
| <input name="contact_email" type="text" class="form"
| onFocus="clearField(this.form.contact_email);" value=" E-mail Address"
| size="24"></td>
| </tr>
| <tr valign="top">
| <td valign="middle">
| <input name="contact_home_phone" type="text" class="form"
| onFocus="clearField(this.form.contact_home_phone);" value=" Phone Number"
| size="24"></td>
| </tr>
| <tr valign="top">
| <td valign="middle">
| <textarea name="contact_comment" cols=28 rows="7"
| wrap="HARD" class="form" onFocus="clearField(this.form.contact_comment);">
| Your message</textarea></td>
| </tr>
| <tr valign="top">
| <td valign="middle">
| <input type="submit" name="Submit" value="Submit" class="form">
| <input type="hidden" name="formname" value="71005028"></td>
| </tr>
| </table>
| </form></td>
| </tr>
| </table>
| ==========================
| Just copy above and paste into a blank page.
|
| Is that more like you wanted?
|
| --
| John Malone
| ==============
| "Gigabyte" <(E-Mail Removed)> wrote in message
| news:EE1AE6ED-3725-4405-A1EF-(E-Mail Removed)...
|| Now your asking,
|| does anyone know how to put that text in a box, but then
|| as you see in search forms, when you click on the box to enter text, the
|| standart text of for example "type your search word here" disappears and
| then
|| you are able to enter your search text...
||
|| thanx
||
|| greetz,
||
|| Barry alan
||
|| "John Malone" wrote:
||
|| > Go to Text Box Properties.....
|| > Right click on box select
|| > "Form Field Properties"
|| > Set the "Initial Value" to
|| > "What ever you want in the box"
|| >
|| > Same with Text Area
|| >
|| > HTH
|| > --
|| > John Malone
|| > ==============
|| > "Beverly-Texas" <(E-Mail Removed)> wrote in
| message
|| > news:125F572F-50E5-47C6-B769-(E-Mail Removed)...
|| > | Hello,
|| > |
|| > | I have a short form and in the form fields, I would like some text to
| be
|| > in
|| > | the field before they click in the field. For instance, I want the
| first
|| > box
|| > | to have "First Name" in the field. In the message field, I want
| "Please
|| > type
|| > | your message". Similar to what you see on www.burkettdental.com -
| Does
|| > | anyone know how to do this in Frontpage?
|| > |
|| > | Thanks,
|| > | Beverly
|| >
|| >
|| >
|
|


 
Reply With Quote
 
John Malone
Guest
Posts: n/a
 
      6th May 2006
Demo Here

http://www.xmas-i-am.com/clear_text_form_field.htm

--
John Malone
==============
"John Malone" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
| More Info.....
| In FrontPage 2003.... (Using Behaviors)
|
| First put the text in the "Text Box" (or Area)
| ==============
| How?
| Go to Text Box Properties.....
| Right click on box select
| "Form Field Properties"
| Set the "Initial Value" to
| "What ever you want in the box"
| ========================
| Then highlight the box (by clicking in it (Once))
| Go to behaviors panel (Insert drop down)
| Then to "Set Text" then select
| "Set Text of Text Field"
| New Window
| (The text area you have highlighted should be in the top box)
| Then in the "New Text" area insert a space (nothing else)
| Click OK
| You can now see the new behavior in the window to the right.
| In the events column (Should be onclick) use the Drop-Down
| to select "onfocus"
| =======================
| Your done!
| Preview and you should see the "default text" in the box.
| When you insert the cursor (or focus) in it.... the text is gone.
|
| 8)
| Have a nice Day!
| --
| John Malone
| ==============


 
Reply With Quote
 
=?Utf-8?B?R2lnYWJ5dGU=?=
Guest
Posts: n/a
 
      7th May 2006
Thanks,
It worked well!

Barry Alan

"John Malone" wrote:

> Demo Here
>
> http://www.xmas-i-am.com/clear_text_form_field.htm
>
> --
> John Malone
> ==============
> "John Malone" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> | More Info.....
> | In FrontPage 2003.... (Using Behaviors)
> |
> | First put the text in the "Text Box" (or Area)
> | ==============
> | How?
> | Go to Text Box Properties.....
> | Right click on box select
> | "Form Field Properties"
> | Set the "Initial Value" to
> | "What ever you want in the box"
> | ========================
> | Then highlight the box (by clicking in it (Once))
> | Go to behaviors panel (Insert drop down)
> | Then to "Set Text" then select
> | "Set Text of Text Field"
> | New Window
> | (The text area you have highlighted should be in the top box)
> | Then in the "New Text" area insert a space (nothing else)
> | Click OK
> | You can now see the new behavior in the window to the right.
> | In the events column (Should be onclick) use the Drop-Down
> | to select "onfocus"
> | =======================
> | Your done!
> | Preview and you should see the "default text" in the box.
> | When you insert the cursor (or focus) in it.... the text is gone.
> |
> | 8)
> | Have a nice Day!
> | --
> | John Malone
> | ==============
>
>
>

 
Reply With Quote
 
John Malone
Guest
Posts: n/a
 
      7th May 2006
Your Welcome 8)

--
John Malone
==============
"Gigabyte" <(E-Mail Removed)> wrote in message
news:225630AF-53D2-4AB9-8862-(E-Mail Removed)...
| Thanks,
| It worked well!
|
| Barry Alan
|
| "John Malone" wrote:
|
| > Demo Here
| >
| > http://www.xmas-i-am.com/clear_text_form_field.htm
| >
| > --
| > John Malone
| > ==============
| > "John Malone" <(E-Mail Removed)> wrote in message
| > news:(E-Mail Removed)...
| > | More Info.....
| > | In FrontPage 2003.... (Using Behaviors)
| > |
| > | First put the text in the "Text Box" (or Area)
| > | ==============
| > | How?
| > | Go to Text Box Properties.....
| > | Right click on box select
| > | "Form Field Properties"
| > | Set the "Initial Value" to
| > | "What ever you want in the box"
| > | ========================
| > | Then highlight the box (by clicking in it (Once))
| > | Go to behaviors panel (Insert drop down)
| > | Then to "Set Text" then select
| > | "Set Text of Text Field"
| > | New Window
| > | (The text area you have highlighted should be in the top box)
| > | Then in the "New Text" area insert a space (nothing else)
| > | Click OK
| > | You can now see the new behavior in the window to the right.
| > | In the events column (Should be onclick) use the Drop-Down
| > | to select "onfocus"
| > | =======================
| > | Your done!
| > | Preview and you should see the "default text" in the box.
| > | When you insert the cursor (or focus) in it.... the text is gone.
| > |
| > | 8)
| > | Have a nice Day!
| > | --
| > | John Malone
| > | ==============
| >
| >
| >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Default date in Text form field brian3ps Microsoft Word Document Management 5 13th Jun 2008 05:08 PM
Default Text for Form Field The Merg Microsoft Word Document Management 2 17th May 2008 12:09 AM
How to insert text into form field without using default text? =?Utf-8?B?RnJhbmNlcw==?= Microsoft Word Document Management 3 8th May 2007 09:06 AM
Set default text field from previous form zoltar Microsoft Access Forms 1 4th Aug 2006 01:57 PM
Form field default text length =?Utf-8?B?Qm9zdG9uSFI=?= Microsoft Word New Users 2 26th Oct 2005 09:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:43 AM.