Showing multiple prompts on the same page

How to set up Locksmith to show more than one input form when using more than one condition type on the same page

Many of Locksmith's access conditions require input from your customers, whether that be a login, or just a code entry or a confirm button press. Sometimes you might wish to give your customers flexibility by providing multiple different ways for a customer to gain access. For example, perhaps they can enter a passcode OR subscribe to your mailing list. Setting that up would look something like this:

By default, Locksmith only shows one entry method at a time to customers. In the above example, you'd see something like this:

Editing messages to show both forms

To include a specific form for a key condition that you're using, you can mix and match the following liquid variable outputs in your Locksmith messages:

Form/condition typeLiquid code used to include the form

passcode

{{ locksmith_passcode_form }}

mailing list signup (i.e. Klaviyo or Mailchimp)

{{ locksmith_email_form }}

confirmation

{{ locksmith_confirmation_form }}

login (for store customer accounts)

{{ locksmith_customer_login_form }}

registration (for store customer accounts)

{{ locksmith_customer_registration_form }}

Example

Continuing the passcode/klaviyo example from above, add this:

Subscribe to our mailing list to continue!

{{ locksmith_email_form }}

Or, enter the passcode:

{{ locksmith_passcode_form }}

Which results in this:

Which message should you edit?

The easiest way to make sure your locked pages display correctly when using multiple prompts is to simply copy/paste the same exact message to each of your messages. Technically only one of them will be used - which is based on Locksmith's internal sorting rules. But, for simplicity, use consistent messages:

Last updated