View Single Post
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Bryan Bryan is offline
external usenet poster
 
Posts: 61
Default Autopopulating a form field from a drop down form field

Good Morning,
I've done this but, still no luck.
I Ctrl+F9 after my drop down and insert the code listed and then F9. I lock
the template and then save it. When I create new doc and select either name,
I get nothing.

I've used macros on exit to poulate a text but, this looked simpler.
What am I missing?

Bryan

"Graham Mayor" wrote:

For three entries
Mitch
Steve
and a single space -
{ IF{ Dropdown1 } " " "{ IF { Dropdown1 } = "Steve" "Call" "{ If{
Dropdown1 } = "Mitch" "Fax" " " }" }" " " }
will work, provided you have calculate on exit flagged on the dropdown1
field and you tab out of it.

Alternatively you could use a selection of fields on the same line to cover
every eventuality.
{ If{ Dropdown1 } = "Mitch" "Fax"}{ If{ Dropdown1 } = "Steve" "Call" }{
If{ Dropdown1 } = " " " " }

You made no mention of 'our' and that appears irrelevant from the field
information you have provided.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



bryan wrote:
I have tried this with Word2000 and am having no luck.
I have 3 items in dropox and have done this
{IF {Dropdown1} = " " " " {IF {Dropdown1} = "Steve" "call" {IF
{Dropdown1} = "Mitch" "fax" }}}

When I select 'our' or 'Steve' from the dropbox, I am getting nothing

What am I missing?

"Jay Freedman" wrote:

Hi Shannon,

For purposes of illustration, I'll assume the dropdown form field has
the default name Dropdown1 and that you put in the items Yes and No.
You should also check the 'Calculation on exit' box in the Properties
dialog.

In the other place, do not put a text form field. Instead, put in
this field, using Ctrl+F9 to insert each matching pair of field
braces:

{ IF {Dropdown1} = "Yes" "text for yes" "text for no" }

The Yes in this field must match the Yes item in the dropdown,
including capitalization. Replace the two text items with whatever
text you need for your form. Press F9 to collapse the field code, and
protect the form. When the user changes the dropdown and tabs to
another form field, the IF field will automatically update to the
corresponding text.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://www.mvps.org/word

"Shannon" wrote:

I have created a form in Word. One of the fields is a drop-down
box (yes/no). Based on what they select in this drop down box, I
would like another field (regular text field) to automatically
populate with pre-defined text. Does anyone know how to do this?

Shannon