Interactive modules can be linked sequentially using the OnClose and OnComplete fields. Modules can also be called by links in menus, hyperlinks or pop-ups.
For the first example, it’s important that you are familiar with the purpose of the OnClose and OnComplete fields. Find out more here.
Daisy-chaining modules sequentially
A module can be set up to automatically launch after the current module has been closed or completed. In this example, a Competition module is launched after a pop-up video has finished playing.
- Add a Pop-up Video module on the page (this is the only module that the reader will click to activate).
- Add a Competition module off-page. This means that the readers cannot trigger the module themselves.
- Select the Competition module followed by the Settings palette
- Copy the text from the JS Command field.
- Select the Pop-up video module followed by the Settings palette.
Linking to a module from a popup
In this example, a hyperlink within a More Information popup can be clicked to trigger an iFrame pop-up module. As the link is created using a hyperlink, the iFrame's module URL is used. Again, the iFrame module has been placed off-page to prevent the reader from clicking it.
- Add a More Information module
- Add an iFrame module off-page, select Settings and copy the text from the Module URL field
- Paste into notepad and replace ptiLinkClicked with ptiClosePopupLinkClicked
- Edit your More Information popup and insert a hyperlink
- Paste the Module URL text into the URL field.
- The Module URL code will run when the hyperlink is clicked, triggering the More Information to close and the iFrame to open.
Linking to a module using a menu
- Copy the JS Command from the module you wish to trigger (this module must be in the same publication that the menu is applied to).
- Paste it into the field provided.