Adding conditions to show or hide a slide

Prev Next

You can show or hide a slide in the generated presentation depending on a condition. For instance, you could add a special slide only for employees with outstanding achievements.
Congratulations message with colorful balloons celebrating outstanding achievements and bonuses.

Steps

  1. Open your PowerPoint template.

  2. Go to the dox42 ribbon and select Insert Data Field.

    Menu options for generating and managing data in the dox42 application interface.

    dox42 ribbon in PowerPoint

    The dox42 Data Fields pane opens which contains all available data fields.

  3. Select the slide that you want to show or hide.

  4. Select the Control Slides button in the dox42 ribbon.

    Menu options for generating and managing data in the dox42 application interface.

    dox42 ribbon in PowerPoint

    The dox42 Slide Controller window opens.

  5. Optional: From the Repeat for Data Source dropdown select the desired data source.

    Note

    In our example we want to repeat the slide for every employee that matches the condition. Depending on your scenario, you can also skip this step.

    dox42 Slide Controller interface showing data source and condition settings for slides.

    dox42 Slide Controller window

  6. To define a condition:

    1. Select the Insert Data Field button.
      The dox42 Data Fields window opens.

    2. Select the desired data field.

    3. Select OK.

    4. Select the desired entry from the Insert Operator dropdown.

    5. Insert a value for the condition, surrounded by quotation marks.

      dox42 Slide Controller interface showing data source and condition settings for slides.

      Example: Condition in Slide Controller window

    6. Optional: To add another condition, select an entry from the Insert Logic Operator dropdown and repeat steps d and f.

    7. Select OK.
      The slide is now marked with the Control Slides icon in the upper left corner.

      Congratulations message for achieving a bonus, featuring colorful balloons in the background.

      Slide with Control Slides icon

  7. Save the PowerPoint template.

Result

You have configured a condition to show or hide a slide. When you generate the document, the slide will be shown or hidden depending on that condition.

In our example, only one employee has an achievement value of 1.0 and therefore the slide is only generated for one employee and hidden for the others:

Example slide for defining a condition

Example: Generated slide depending on a condition