Hi Shannon
This is a two-step process.
Step 1: Create a macro like the following:
Sub UpdateTextFormField()
With ActiveDocument
If .FormFields("DropDown1").Result = "Yes" Then
.FormFields("Text1").Result = "You chose yes"
ElseIf .FormFields("DropDown1").Result = "No" Then
.FormFields("Text1").Result = "You chose no"
End If
End With
End Sub
If you're not sure what to do with that macro, see
http://www.gmayor.com/installing_macro.htm
You will need to edit that macro in three ways:
(a) Change the name of the drop down field to match the name of your drop
down field
(b) Change the name of the text field to match the name of your text field
(c) Change the text you want to display in the text field.
Note that it's a good idea to give your fields meaningful names. You can
change the name by turning off protection, then right-clicking the field.
Names like txtCompanyName are more useful than "Text1".
I would also change the name of the macro (ie the word after Sub). Call it
something more specific like UpdateEmployeeStatus or UpdateCustomerName.
Step 2: Tell the drop down field to run the macro when the user exits the
drop down field. To do that, turn off protection on the form. Right-click
the field and choose Properties. In the Exit box, select your macro.
Turn protection on, and test it out.
Hope this helps.
Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
Shannon said:
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?