Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-03-2013, 07:47 AM
sgarciacode sgarciacode is offline Dynamic Forms using Bookmarks Windows XP Dynamic Forms using Bookmarks Office 2003
Novice
Dynamic Forms using Bookmarks
 
Join Date: Oct 2013
Posts: 1
sgarciacode is on a distinguished road
Question 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,
Reply With Quote
  #2  
Old 10-03-2013, 02:19 PM
macropod's Avatar
macropod macropod is offline Dynamic Forms using Bookmarks Windows 7 32bit Dynamic Forms using Bookmarks Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
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, 52 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

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
Dynamic Forms using Bookmarks 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 Forms using Bookmarks Dynamic Charts... herbycanopy Excel 3 04-09-2010 05:58 PM
Show bookmarks dempen Word 2 01-14-2010 11:47 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:10 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft