Skip navigation
User Manual
Overview

Wildcards

Use wildcards to show or hide the form Widget on all pages of a subcategory of your website. Wildcards match groups of similar URLs. For example, only show the Drip widget on the "/blog" subdirectory of your site.

Here's an example of a URL containing a subcategory: https://drip.com/blog.

The “blog” subcategory contains a number of blog posts. To show a form Widget on every single blog post contained in that subcategory, apply a wildcard to the URL.

Here's an example of a wildcard for the “/blog” subdirectory: /blog/**

There are two kinds of wildcards:

  • Single asterisk(*)

  • Double asterisk(**)

Single Asterisk Wildcards

The single asterisk matches an individual URL segment. For example, "/blog/*" matches "/blog/basic but does not match /blog/basic/123".

Double Asterisk Wildcards

The double asterisk(**) wildcard matches one or more URL segments. For example, "/blog/**" matches "/blog/123 and /blog/category/marketing/1234".

Mix Wildcards Together

Here are a few examples of how to mix wildcards together:

Use the single asterisk(*) wildcard in the query string. For example, /blog/**?s=* matches any page under the blog subdirectory with the query string parameter set to anything.

Phrases wrapped in square brackets are interpreted as regular expressions. For example, we will translate [(help|support)] into/(help|support)/ and match it against the current URL in JavaScript. For more information about regular expressions, check out this guide.

Add a Wildcard to a Form

  1. Go to Forms

  2. Select a Form from the list or create a new one

  3. Go to Design > Visibility

  4. Check Hide on specific pages or Only show on specific pages

  5. Enter the URL and wildcard

  6. Click Save Settings

The Form Widget will be hidden or only show on that subdirectory of your site.

x A mockup of the cover of the Holiday Ebook

Free Guide to Black Friday & Cyber Monday

Ready to rethink Black Friday? Focus on long-term loyalty, not just short-term sales. Grab our free guide full of whys and hows for this holiday season.

Get my copy