Memory

    Showing and hiding blocks based on an answer

    The same Marker on the same wall can show a business traveller your meeting rooms and a family your pool hours. This is the block that decides, and the two mistakes that make it behave unexpectedly.

    Updated 15 October 20264 min readRequires Growth

    First, the thing that saves an afternoon: there is no visibility switch on an ordinary block. You do not hide a Heading by ticking something on the Heading. You add a Conditional block, which holds two branches and decides between them.

    Reading a rule

    How the Conditional block decides

    Conditional
    Ifvisitor_typeequalsFirst visit

    Then show

    A Promo Box

    “New here? Start at the otter deck. Feeding is at 11.”

    Otherwise show

    Nothing

    The default. A returning visitor sees the page without this block, and nothing takes its place.

    Both slots take a real block: Text, Heading, Image, Button, Promo Box, Map, Feedback Form, Quick Choice, Rating, Check-In, Geo Check-In, or Nothing. “Otherwise” also covers everyone who has not answered the question yet, which is every first-time visitor who has not reached it on the page.

    A rule reads as a sentence: which answer, what comparison, what value. The row on the right is the one people get wrong.

    The editor gives you five fields, in this order: Answer to check, Condition, a compare value, Then show, and Otherwise show. The builder's own show-and-hide rules article covers where the block sits in the editing flow; this one covers what the rule means.

    The seven conditions

    ConditionTrue whenGood for
    is setThe visitor has answered at all, whatever they said.Hiding a question they have already answered.
    is not setThey have not answered.Showing the question only to people who still owe you one.
    equalsTheir answer matches exactly. With a multi-select answer, the whole set has to match.A single, specific choice.
    does not equalThe inverse of the above.Everyone except one group.
    containsTheir answer includes any of the values you list.Multi-select answers, and partial text matches.
    visit count is at leastThey have visited this many times across your whole space, not just this page.Rewarding regulars.
    has visited an ExperienceThey have already seen the Experience you pick: a check-in there counts too.Trail sequencing, and follow-ups.

    What can go in a branch

    Each branch is authored inline in a reduced editor rather than by dragging existing blocks into it. It supports text, a heading, an image, a button, a promo box, a map, a feedback form, a Quick Choice, a Rating, a Check-In, or nothing at all.

    Choosing nothing for the second branch is how you get a plain show-and-hide: the block renders for people who match and simply is not there for everyone else. No gap, no placeholder, no empty space where it would have been.

    A branch as a visitor sees it: a heading "Make a day of it" over three lines: the river path starting at the end of the lane, Saturday market hours, and a bike to borrow from the porch with no charge and no booking.
    A branch that matched. Nothing on the page marks it as conditional: the visitor who does not match simply never sees these words.

    The visitor everyone forgets

    Building one

    1. 1

      Make sure the answer exists

      The Conditional block can only check answers that some block on your account collects. Add the Quick Choice, Custom Input or capture block first.

    2. 2

      Add the Conditional block

      It is in the Smart group in the block picker, and needs the Growth plan for visitors to see it. A free account can build with it, and the 14-day trial shows it to visitors.

    3. 3

      Pick the answer to check

      The dropdown lists the answers in reach of this Experience. If yours is missing, its reach is probably set to This Experience on a different page.

    4. 4

      Choose the condition and the value

      For a Quick Choice the compare field becomes a list of that question's real options, so you cannot mistype one.

    5. 5

      Write both branches

      Then show, and Otherwise show. Set the second branch to nothing if you want a plain hide.

    6. 6

      Test both paths

      In the builder preview you are always a first-time visitor, which tests the Otherwise branch. Open the published page on your own phone and answer the question to test the other.

    Example

    The Bellhaven Hotel: one lobby Marker, two hotels

    The lobby Experience opens with a Quick Choice: Here for work, or for a break? The answer is named stay_type and set to Everywhere.

    Below it, a Conditional block checks stay_type contains work. Then show is a promo box with the meeting-room floor, the printer location and the express breakfast time. Otherwise show is a promo box with pool hours, the spa number and the late checkout policy.

    Because both branches carry real content, the guest who ignored the question still gets the leisure card rather than a hole in the page, which was the deliberate choice, not an accident.

    Can I nest a Conditional inside a Conditional?

    No. Each branch takes one piece of inline content. For two decisions, use two Conditional blocks one after another.

    Can I hide a block I already built?

    Not by reference. The branch content is authored inside the Conditional block, so you rebuild the content there and delete the original.

    Does a hidden branch still count in Stats?

    No. A branch that does not render is not on the page, so nothing about it is counted.

    Why does my rule never match?

    Two usual causes. The answer's reach is This Experience and the rule is on a different page. Or the answer is a multi-select and the condition is equals when it should be contains.

    Was this helpful?

    Related

    Still stuck?

    We are a small team in Tampa and we read every message. Tell us what you are trying to do and we will reply within one business day.

    Email support