Group:  Microsoft Word ยป microsoft.public.word.docmanagement
Thread: Word2007 text form field

Geek News

Word2007 text form field
tedshred 12/10/2008 1:42:16 PM
I've built a form with text fields.

The problem is when the user cliks on the field, the default text doesn't
disappear.

MS's guidance page (
http://office.microsoft.com/en-us/word/HA100307461033.aspx ) tells you to
check off "Remove content control when contents are edited check box. "

Guess what, it ain't there.....
Any suggestions? Ted
Re: Word2007 text form field
"Jay Freedman" <jay.freedman[ at ]verizon.net> 12/10/2008 2:52:57 PM
tedshred wrote:
[Quoted Text]
> I've built a form with text fields.
>
> The problem is when the user cliks on the field, the default text
> doesn't disappear.
>
> MS's guidance page (
> http://office.microsoft.com/en-us/word/HA100307461033.aspx ) tells
> you to check off "Remove content control when contents are edited
> check box. "
>
> Guess what, it ain't there.....
> Any suggestions? Ted

Are you using form fields in a protected form (from the Legacy Controls
gallery) or content controls? Content controls do have the check box you
mentioned; form fields don't.

If you are using content controls, then the check box doesn't do what you
want anyway. What it does is to remove the content control container,
leaving whatever text the user has typed into the control as plain text. The
default text doesn't disappear until the user starts editing, not just on
clicking in the control, regardless of the state of the check box.

If you're using protected form fields, well, that's just the way they've
always worked. If you tab into the field, the whole field content is
selected and is replaced as soon as you start to type. If you click into the
field, the selection is just the insertion point. To change that behavior,
you'll have to put the following macro in the form's template (see
http://www.gmayor.com/installing_macro.htm if needed), and make that the
entry macro of each field.

Sub EntrySelect()
Selection.Bookmarks(1).Range.Fields(1).Result.Select
End Sub


--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net