Secret Code Action

The Secret Code action asks entrants to enter a code before they get their entry, so you can reward people who found a code in store, on a flyer or with their order.

Applications that support Secret Codes actions:

Note

The Secret Code Action is available on the Hobby Competitions plan and above and any Rewards plan.

The Secret Code action checks a code entrants type in before they can continue. Use it to:

  • Password protect a campaign
  • Run a treasure hunt
  • Validate order IDs
  • Validate numbers from printed coupons or flyers
  • Reward people who visit your store to get a code

Validation: Code Entry

Admin view for the Secret Code action on Gleam.io
  • Instructions: tell entrants where to find their code
  • Code Entry Label / Prompt and Placeholder: what entrants see in the code field
  • Code Entry Options: one Single Code everyone uses, or Multiple Codes that each work once
  • Secret Code: up to 20 characters, letters and numbers only. Codes are converted to UPPERCASE
  • Format (optional): a regex the code has to match, like ^.{8}$ for 8 characters
  • Error messages (optional): custom text for an incorrect code or one that's already been used
  • Entry Interval: let entrants enter a code once, or again every hour, day or week

Choose Multiple Codes to upload a CSV of codes, separated by commas or one per line. Your plan sets the maximum number of codes per campaign (yearly plans get double the monthly limit). If you need more, upgrade your plan or ask us about a limit increase.

Uploading multiple secret codes in Gleam
Gleam widget showing the Secret Code action with a code field

The Scavenger Hunt template uses Secret Codes to create a virtual treasure hunt.

See Next Article

Shop Action

Reward entrants for following your store on Shop.