Making Logic for Drop Down Lists

I have been trying to make a drop down list using content controls that has several different options. One of the options is "Other" and when someone selects that option, I would like a text box to appear next to the drop down list, but ONLY when the "Other" option is selected. I've been able to make a drop down list and I know how to use the content controls, I'm just curious if anyone knows how to make the option "Other" trigger a rich text box to appear?
Answer
Answer

The behavior you want isn't part of the ordinary capabilities of content controls. As in most cases where you want behavior in Word that isn't built in, you need to write macro code. (You can't record this kind of macro, either -- it has to be designed and written by hand.)

For the general idea of a macro that "watches" what the user selects in a content control and then does something special with that information, look at http://gregmaxey.mvps.org/word_tip_pages/content_control_custom_events.html. Greg lays out code for a "monitor" macro that runs whenever the content of any control in the document changes.

You would have to include that code in your template. Then, in addition, you would need to write code inside the monitor macro that says "If the control that changed is this specific dropdown, and if the selected value is 'Other', then insert a rich text content control (below? to the right of?) the dropdown."

_____________________________
https://jay-freedman.info

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated October 1, 2021 Views 556 Applies to: