#1
|
|||
|
|||
Dynamic Forms using Bookmarks
Hello Everyone,
I have created a few letters that use bookmarks as placeholders which then get filled in with information that is extracted via and SQL query. Now I am attempting to modify the form so that the body of the letter can change dynamically based on a Combo Box selection the user makes. I can set up the Combo Box and I am using a case statement to alternate between selection but the part I cant figure out is creating method by which I can house the different body types for each letter? So to sum up, does anyone now of a way that I can dynamically change the body of a paragraph based on a Combo Box selection? P.S. my paragraphs also contain bookmarks within them, Im not sure if this will effect the solution. Thanks, |
#2
|
||||
|
||||
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.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
bookmarks, dynamic text, forms |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't See Bookmarks | bobmayo | Word | 21 | 06-04-2013 07:37 AM |
Linking to Bookmarks | savo | Word | 6 | 04-11-2013 11:04 AM |
Bookmarks for a PDF? | Ownaholic | Word | 0 | 10-30-2010 12:27 AM |
Dynamic Charts... | herbycanopy | Excel | 3 | 04-09-2010 05:58 PM |
Show bookmarks | dempen | Word | 2 | 01-14-2010 11:47 PM |