#1
|
|||
|
|||
Hide table based on dropdown list
Hi,
I would like to have a dropdown list (currently using "legacy") and then based on that selection show 1 of three tables (i have three options in dropdown list) Metal Tile Metal and Tile I have tried inserting If statement with no luck. I even tried a test one { IF {Dropdown2} = "Metal" "Test" } But i get Error! Missing test condition. I get the feeling i am not constructing IF statement correctly. |
#2
|
||||
|
||||
You should use:
{IF{REF Dropdown2}= "Metal" "Test"} Note: Both sets of field brace pairs (i.e. '{ }') for the above example are created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac or, if you’re using a laptop, you might need to use Ctrl-Fn-F9); you can't simply type them or copy & paste them from this message. The spaces represented in the field constructions are all required.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
I am wanting to do something similar, except that based on the selection of the drop down, additional tables would pre-populate later in the document. I have used the If statement and am successful in getting the tables to pre-populate; but I am unable to edit them and the legacy forms within the table go away. Any suggestions?
|
#4
|
||||
|
||||
That is how documents employing formfields work. Other than the formfields themselves, you can't edit any portion of the document that has the formfields protection applied to it - and that includes formfields that you might embed in other fields.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Paul, you are just the one I was HOPING would answer! I have been spending days going through the forums reading your stuff and trying to figure out how to use your guidance to do what I need. I was just reading your response (https://www.msofficeforums.com/word-...tml#post118315) Trying to figure out if that is what I am needing. Can you confirm that your answer in that thread is along what I am looking to do?
|
#6
|
||||
|
||||
That post relates to the use of content controls, not formfields.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
Can I maybe try to explain a little more of what I am trying to do and you can point me in the right direction of how to accomplish it?
|
#8
|
||||
|
||||
I think you should start a new thread.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
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 |
Show/Hide text based on dropdown value | AOSMITH | Word VBA | 2 | 11-19-2019 02:19 PM |
Text based on selection of dropdown list | cloud67 | Word VBA | 2 | 08-09-2019 06:46 AM |
Auto populate a text field based on Content Control Dropdown List | matthias92701 | Word VBA | 2 | 05-02-2019 03:54 PM |
Looking to copy select cells in table using dropdown list to paste to new table in another worksheet | CaptainRetired | Excel Programming | 18 | 01-04-2018 07:22 PM |