Dynamic lightbox content with URL parameters – Cordial Knowledge Base

How can we help?

Overview

With Web Forms you can add dynamic content to a lightbox without having to write any custom code. This can be accomplished by selecting the appropriate options in the Web Forms Administrative Interface.

Contact your Client Success Manager to get started with Web Forms.

Use cases

There are many possibilities when it comes to incorporating dynamic content with your lightboxes. For starters, you can add text from URL parameters to your lightboxes. Here are some ways you can use URL parameter text with your lightboxes:

Our example

In this example, we're going to dynamically add the text from a utm_content query string parameter to a lightbox text field.

  1. To get started, go to the Boxes section of the Web Forms Administrative Interface and click on the Dynamic icon for your lightbox. The tooltip for this icon is Add Dynamic Items to Box.

  2. Next, click on + New Dynamic Item.

  3. Next, you'll be presented with this form.

  1. Final result: This is a screenshot of a lightbox where the utm_content URL parameter's value is "Mobile%20Newsletter"