This article explains how to insert slides from the Library through smart fields so it can be automatically inserted when generating the presentation.
Prerequisites
|
Important
|
What is slide insertion?
There are two different types of slides that can be inserted into a presentation:
- Static slides: the slides do not contain any questions in the response form. When dynamically inserting static slides into a presentation, the end-user will be prompted with the presentation response form only.
-
Dynamic slides: the slides do contain smart fields and at least one question in the response form. When dynamically inserting dynamic slides into a presentation, the end-user will be prompted with a response form gathering both the presentation and the slides response forms. The Slide placeholder displayed in the presentation response form will dictate where the slide response form should appear for the end-user.
Important
To show the form questions of the inserted slide(s), the slide(s) must be inserted static (fixed asset ID) or dynamically by a dropdown or checkbox. When a flexible dropdown is used then the form questions of the inserted slide(s) will not be shown.
Furthermore, there are two different ways of inserting slides into a presentation, either by using a static or a dynamic insertion:
- Static insertion: linking a specific presentation from the Slides Library to be inserted in the presentation. This can be achieved by directly using the asset ID of the presentation from the Slides Library in the Slide(s) smart field. (See example "Inserting slides using static insertion in a presentation in PowerPoint" below).
- Dynamic insertion: linking a dropdown question in the response form where the user can pick an answer, which will insert the desired slides in the presentation. This can be achieved by creating a data source containing the options that should be displayed to the end-users in the response form and specifying the asset ID inside the data source. (See example "Inserting slides using dynamic insertion in a presentation in PowerPoint" below).
When working with slides insertion, the asset ID of the presentation from the Slides Library will be necessary. The asset ID can be found in the Admin Center, by navigating to the Slides Library, finding the relevant slide, clicking on the ellipsis menu, and using Copy asset ID.
Note
|
How to insert slides from the Library into a presentation with smart fields
When building a smart template, the Slide(s) smart field can be used to insert slides into a presentation. To create a Slide(s) smart field it is necessary to specify the slides that should be inserted. The slides can be inserted statically or dynamically using asset ID's inside a presentation. Creating a Slide(s) smart field can be achieved following these steps:
- In Template Designer, navigate to the Template tab.
- Select the location (in the thumbnail slides shown on the left) where the slides should be inserted. A placeholder slide will be generated below the slide currently selected.
- Click + Add smart field.
Note: this step does not apply if you are adding the very first smart field in the template. - Click Slide(s).
Note: if this option is not visible you have to click More first. - Enter a Display name. The display name will be displayed in the Template tab once the smart field has been added.
- Enter the Asset Id:
- For a static insertion, copy the asset ID from the presentation in the Slides Library into the Asset Id field.
- For a dynamic insertion, create the desired binding linked to the response form using the binding syntax.
- For a static insertion, copy the asset ID from the presentation in the Slides Library into the Asset Id field.
- When creating a slide(s) smart field a slide placeholder will be automatically inserted in the response form. The placeholder defines where the slide(s) response form will appear for the end-user:
- By default a new placeholder will be generated.
- If a placeholder already exists in the response form, it will be selectable from the list.
It can be disregarded if the inserted slide does not contain a response form.Note
A new placeholder will be named 'Placeholder 1', 'Placeholder 2' etc., but can be renamed on the Form tab in the Question title field. For example rename 'Placeholder 1' to 'Disclaimer' if that is the content of the slide.
- Click Add to template.
- The smart field will be inserted into the template and will be displayed in the Template tab.
- A placeholder slide will be inserted into the presentation. This placeholder slide will be replaced by the inserted slides when generating the presentation.
Important
- The Slide(s) smart field is not supported with the document content updater.
- Slides containing custom table formatting are not supported with the Slide(s) smart field.
The result would look like this:
Slide(s) smart field examples
In this example a slide is inserted in a PowerPoint presentation using dynamic insertion, using a dropdown.
Create a data source 'ProposalPowerPointIndustries' with a column AssetID and some items. It would look like this:
ImportantThe column in the data source containing the Asset Id (in the example this is the 'AssetID' column) needs to be of type Text in the Schema. |
Create a Dropdown question in the response form using "Industry" as the Reference Name, linking to 'ProposalPowerPointIndustries' data source, and displaying the Name column.
The data source itself contains slide asset IDs in the 'AssetID' column. Therefore, we will be using {{Form.Industry.AssetID}}
as a binding in the Asset Id field of the Slide(s) smart field.
The inserted slides do not contain a response form so the placeholder will be disregarded.
When generated by the end-user, the slide inserted into the presentation, replacing the placeholder slide, will depend on the answer provided for the 'Industry' question of the response form:
In this example a slide is inserted in a PowerPoint presentation using dynamic insertion, using a checkbox.
A slide is created (with a question), then a template with a checkbox that will insert the slide if the checkbox is ticked.
Create an 'About Us' slide
Create the slide following the steps below.
- Create a slide. On the Form tab click + Add question then use these values:
- Type: 'Text'.
- Question title: 'Company Name'.
- Reference name: 'Company_Name'.
- Type: 'Text'.
- Click + Add to form.
- In the template add a shape. Select the shape, then on the Template tab expand Form responses, select the 'Company_Name' form field and click Add to template.
- Optional: while the shape is selected, change the font size, font color and background color.
- Add another shape with some 'About us' text. The result looks like this:
- Save the (slide) template as 'About us.pptx' and upload it to the Slides library in the Admin Center.
- For the slide get the asset ID (you'll need it when creating the template), by clicking the ellipsis button and then Copy asset ID and save it (temporary) to e.g. Notepad.
Create an 'Annual Meeting' template
Create the template following the steps below.
- Create a template. On the slide type 'Welcome to our annual meeting'. The result looks like this:
- On the Form tab click + Add question then use these values:
- Type: 'Checkbox'.
- Question title: 'Show 'About us' slide'.
- Reference name: 'Show_About_us_slide'.
- Type: 'Checkbox'.
- Click Add to form.
- On the Template tab click More, then click Slide(s). Then use these values:
- Display name: 'About Us'.
-
Asset Id:
{{IfElse(Form.Show_About_us_slide, "1105476951677599798", "")}}
. -
Placeholder: 'Generate new' (default).
Note
- TThe asset ID '1105476951677599798'is the value found in step 7 from creating the slide (see above).
- When only the value '1105476951677599798' is placed in the Asset Id field, the slide would always be inserted. In this example the slide only needs to be inserted when the checkbox is ticked, so that's why an IfElse() function is used.
- Display name: 'About Us'.
- The result looks like this:
- Click Add to template. The result looks like this:
- To see what the result is when a user creates a presentation, click Preview form on the Form tab:
- Save the template as 'Annual Meeting.pptx' and upload it to the Presentations library in the Admin Center.
- In the presentation the result looks like this (with Update Presentation) when the checkbox was unticked when the presentation was initially created:
Important
If the checkbox is ticked after creating the presentation, the question 'Company name' will be shown. However, when the presentation is updated, the 'About Us' slide will not be added to the presentation. This is by design.
Important
- If the checkbox now is unticked and the presentation is updated, the 'About Us' slide will not be removed from the presentation. This is by design.
- If the checkbox remains ticked and value of the 'Company name' is changed, the value in the slide will be updated.
Best practice using slide insertion
In this article is explained what the best practice is regarding the Slide Master and Slide Layouts when using Slide insertion.
Comments
Article is closed for comments.