View Single Post
 
Old 10-03-2013, 02:19 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

By Combobox I assume you mean a Dropdown formfield.

To do what you want, check the formfield's 'calculate on exit' property. Then, wherever you want the dependent content to appear, insert an IF field to test its contents. For example, suppose you're using a Dropdown formfield with the internal 'Dropdown1' bookmark and you want some conditional text to appear when the 'Widget' item is selected. You might code the IF test as:
{IF{REF Dropdown1} = "Widget" "You selected the widgets option"}
or:
{IF{REF Dropdown1} = "Widget" "You selected the widgets option" "This text appears if the widgets option hasn't been selected"}

Note: The field brace pairs (ie '{ }') for the above example are created in the body of the document via Ctrl-F9 (Cmd-F9 on a Mac) - you can't simply type them or copy & paste them from this message.

Example attached.
Attached Files
File Type: doc Formfields - DropDownConditionsDemo.doc (33.5 KB, 54 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote