#1
|
|||
|
|||
Show/Hide text based on dropdown value
I have a word document and I am required to show different text based on what the value of the dropdown is.
I've created a dropdown, Dropdown1, which has three options: "FIRST" "SECOND" "THIRD". All three options will display different text. I read here: "https://answers.microsoft.com/en-us/msoffice/forum/all/word-2003-using-a-dropdown-to-show-hide-a-table/71da1c6e-09a5-43d8-adf9-c688956c8abe?page=1" that all I need to include is this: {If {Dropdown} = "FIRST" "TEXT TO SHOW HERE"} This does nothing at all. I am using the brackets generated by Ctrl + F9. Am I putting this code in the wrong place? where is the right place? Any help appreciated. Thanks Adam |
#2
|
||||
|
||||
If this is a legacy dropdown form field, you need to check the formfield property 'Calculate on Exit' in order to force the update of the REF field. It should go without saying that Dropdown is the bookmark name of the dropdown form field. The usual default is Dropdown1 thus
{IF {Dropdown1} = "FIRST" "FIRST TEXT TO SHOW HERE" ""}{IF {Dropdown1} = "SECOND" "SECOND TEXT TO SHOW HERE" ""}{IF {Dropdown1} = "THIRD" "THIRD TEXT TO SHOW HERE" ""} and of course you have to tab out of the form field for it to work and thus there needs to be another formfield to tab to.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#3
|
||||
|
||||
This thread is a duplicate of: https://www.msofficeforums.com/word/...own-value.html
Kindly don't post the same question in multiple threads. Thread closed. You may continue the discussion in your original thread.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
if statement |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Show/Hide content based on dropdown value | AOSMITH | Word | 5 | 11-19-2019 07:19 PM |
Bookmark will not show/hide based on CC Checkbox | lord_kaiser | Word VBA | 1 | 04-17-2018 01:19 AM |
Hide/Show text based upon check box status | nathan.gray@emerson.com | Word VBA | 5 | 12-08-2017 01:08 PM |
Show/Hide Text based on Checkbox Selection | tammytran105 | Word VBA | 7 | 10-02-2014 04:30 PM |
Show/hide paragraphs based on upfront decisions | miscia76 | Word | 1 | 11-13-2013 04:29 PM |