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
Last updated
How to set up Locksmith to show more than one input form when using more than one condition type on the same page
Last updated
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:
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 type | Liquid code used to include the form |
---|---|
passcode |
|
mailing list signup (i.e. Klaviyo or Mailchimp) |
|
confirmation |
|
login (for store customer accounts) |
|
registration (for store customer accounts) |
|
Continuing the passcode/klaviyo example from above, add this:
Which results in this:
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: