Working with Conditional Text in InDesign

Working with Conditional Text in InDesign

Conditional Text - Panel
  1. Open Conditional Text.indd.
  2. Choose Window > Type and Tables > Conditional Text to open the panel. The panel already has conditions created and applied to various text items in the layout. Note the two versions of the word "color" and "colour" for the US and UK spelling; also the dimensions on the artwork is in "in" and "cm"; there are also prices for US, UK and Europe.

    Note: The text which has a condition applied to it, will have a wavy line below it with the corresponding color of the condition that is applied.

    For instructor-led Adobe indesign classes in Los Angeles call us on (888) 815-0604.

New Condition Dialog Box
  1. Click the New Condition button at the bottom of the Conditional Text panel.
  2. Name the condition "Price - US" and click OK.

To quickly apply the Price-US condition to all the $ prices, we will use GREP.

Find and Change
  1. Choose Edit > Find/Change.
  2. Click on the GREP option.

Since the $ sign is a GREP instruction, we cannot type in just a $ to have GREP locate all the $ prices in the layout.

  1. Type in "\$" in the Find What field.
  2. To look for numbers after the $ sign, click on the button with the @ symbol on it to the right of the Find What field. Choose ww > Any Digit. This will add a '\d" to the search instruction.

Choosing Wildcards


  1. To look for more than one number following the $ sign, choose Repeat > One or More Times.

Repeat One or More Times


This will add a "+" to the search instruction. Click the diskette symbol to the right of the Query to save this. Name it: Find Price $$.

  1. Click the icon to the right of the Change Format box at the bottom.

Change Format Box


Change Format Setting



  1. Once the Change Format Setting box opens, click on the Conditions option.
  2. In the list of Conditions, select the Price-US condition. Then click OK.


GREP settings



In the Find/Change box, the Search should target the Document. Click the Change All button. You will see a pop up box showing that 4 changes were made. In the document, the $ prices will now be underlined with the color associated with the condition. Once the text that is variable has all the conditions applied to it, the visibility of the different text items can be managed through Sets.




Conditional Text



  1. In the Conditional Text panel choose Show Options form the panel menu. This will open a section at the bottom of the panel where sets can be created to manage multiple conditions.
  2. Click on the eyeball next to the conditions that should not be visible, to turn them off, since all the conditions are currently visible. Turn off the following conditions: Price-US; Price-Europe; Size Europe and Text US/Europe. The conditions left visible will show just the UK version text.
  3. Click on the pull-down menu to the right of the Set: and choose Create New Set....



Conditional Text - UK Price Sheet


  1. Name the set UK Price Sheet.
  2. Repeat the same process for the US and Europe versions on the sheet.
  3. Once you have created the sets, select each of the three sets from the pull-down menu to switch between each version of the price sheet showing just the text that relates to that version.

 

Note: [Unconditional] text is the text that is visible at all times. The text with different conditions applied does not need any spaces between the words for each condition.


Each set of conditions will manage the visibility of each version of the price sheet for the US, UK and European options.


Condition Set Name




Practice with the names and conditions to create your own conditions as well. Best to use it when needed to create a document with different languages and still have the same style.

US and UK Price sheets


European Price Sheet



 

Other InDesign topics

InDesign Reviews

There is no better way to learn Adobe InDesign than in one of our face-to-face instructor-led classes. We have trained hundreds of students how to use InDesign like pro's. Click on the following link to view a sample of our InDesign student reviews or contact us for instructor-led Adobe InDesign training in Los Angeles on (888) 815-0604.