View Single Post
  #2   Report Post  
Posted to microsoft.public.word.pagelayout
Greg Maxey[_2_] Greg Maxey[_2_] is offline
external usenet poster
 
Posts: 668
Default Entering Info in Form Fields

Using legacy formfields (Word2003 and ealier) you can. You could use
ContentControls in Word2007 or a UserForm in any Word version (see:
http://gregmaxey.mvps.org/Create_and...a_UserForm.htm)

Using formfields about all you could do is provide and enable a text field
for when the user selects the appropriate "provide your own input" option in
a dropdown. For example the a dropdown may have the options A, B, C and
Other. You would provide and textfield named "Other" and use the following
entry and exit macros assigned to the Dropdown field:


Sub DDOnExit()
If ActiveDocument.FormFields("DropDown1").DropDown.Va lue = 4 Then
ActiveDocument.FormFields("Other").Enabled = True
Else
ActiveDocument.FormFields("Other").Result = ""
ActiveDocument.FormFields("Other").Enabled = False
End If
End Sub

Sub DDOnEnter()
ActiveDocument.FormFields("Other").Enabled = True
End Sub


airhockeycanada wrote:
Good day!

I have developed a form with drop down menus in some places and free
form fields in others. However, there are a few places where having a
combination of the two would help.

For instance, I'd like to give the user a choice of either using the
selections in the drop down menu OR enter their own response free
form in the field.

How can this be done?

Thank you.