Figma Advanced Prototyping Variables for a Delivery Flow
Bind one string to the method selector, route Continue by its value, and test a change from courier delivery to workshop collection.
Bind one string to the method selector, route Continue by its value, and test a change from courier delivery to workshop collection.
Figma advanced prototyping variables let you test whether a flow takes the right route after someone changes a choice. In Figma Design, store the choice as a string, show it through a bound component variant, and let Continue read that same string. Give the flow a missing-choice response and a reset. Then test both routes in one uninterrupted run. A prototype that works only from a fresh start can hide the bug a returning user will encounter.
This exercise uses a fictional repair shop, Tallow, which lends tool kits. People can collect a kit from the workshop or have it delivered. The question is whether they can switch from delivery to collection after seeing the address step. Success means the summary reflects collection and asks for no address. Use invented details throughout. The exercise models a decision and its consequences, so the tester can focus on what changes and what stays available.
Model the delivery choice
Put a method question on the first frame with two options, Workshop collection and Courier delivery. Start with neither selected. Build a Collection review frame and a Delivery address frame, followed by a Delivery review frame. Label the prototype starting point so testers enter at the method question instead of jumping to a review frame from the canvas. Check the editing and plan requirements in Figma’s prototype variables documentation before building the exercise.

In a local collection for the exercise, create a string called method with the value unset. Use the exact values pickup and courier for the other two cases. These keys can stay the same even if you translate the screen labels or rename Workshop collection to Collect at the workshop. Add a boolean called showChoiceError and initialize it to false. Keep the error flag independent because an empty choice at the start and an empty choice after pressing Continue present different information to the user.
Draw the expected destinations before wiring interactions. With no selection, Continue stays on the method question and displays “Choose collection or delivery.” Collection goes to Collection review, which lists the workshop location and pickup instructions. Delivery goes to Delivery address, which explains why an address is needed. With this map you can catch a shortcut such as connecting both options directly to their destination and leaving no time to read the selected state. For the exercise, selection and continuation are two deliberate actions.
Make the visible choice follow the variable
Create one local component set for the whole choice group. Give its variant property three values matching method. In the unset variant, both radio marks are empty. In pickup, only Workshop collection is marked. In courier, only Courier delivery is marked. A single bound property makes it possible to review all legal combinations. The parent owns which option is active, so two row instances cannot each claim to be selected after a series of taps.

Place an instance on the method frame and bind the variant property to method. Figma describes the mapping in its guide to applying variables to designs. Give each option in each variant a click or tap interaction that writes its own key with Set variable, then sets showChoiceError to false. Bind the error layer’s visibility to the boolean. Test the text label and the circular control together by making the option row the interaction target. Keep the control visible when labels wrap.
Reuse the local set in the test file after verifying each variant. If a click changes the data but the old mark stays visible, check the exact property values and the binding on the instance. Check that the selected variant exposes both row interactions. A missing target there can make the first selection work and the second one inert. For a smaller exercise focused on a single yes/no control, follow the Figma boolean variable walkthrough. This delivery scenario needs three distinct states across a mutually exclusive group.
Route Continue from the current choice
Select Continue and add a click or tap trigger. Use three mutually exclusive conditional checks on that trigger. When method == "unset", show the error and stay on the method frame. When method == "pickup", navigate to Collection review. When method == "courier", navigate to Delivery address. Leave the Else action empty for each check. Under this model only one equality is true and none of these checks should change method. Use the documented conditional and action order rules when editing the trigger.

Treat Back on the address frame and Change method on either review as named routes to the method frame. These actions preserve the method while the user is still editing the same request. Check that the old choice is marked when they return. Select the other method before continuing, and confirm the new mark appears while still on the same frame. If the mark is right but the destination is wrong, inspect Continue for an unconditional navigation or a destination linked to the wrong comparison. The visible mark and next screen answer separate test questions.
Put a clearly named Start over action on the review frames for the facilitator’s repeated runs. Set method to unset and showChoiceError to false, then navigate to the method frame. Apply the same explicit reset to any simulated address state you add. Figma runs stacked actions in their listed order. Give “Back” and “Start over” different labels in test instructions so participants exercise the behavior you intend. A return to the opening frame can look identical from across the room even if it preserves a previous choice.
Build the address step with EmviUI
Use an EmviUI Input specimen to lay out the address label, field, and inline feedback. The kit shows filled, disabled and error treatments that can inform the address branch. Use the EmviUI radio button as a visual reference for the method group, then wire the test’s three group variants and interactions in your file. The screenshot shows input treatments you can compare before drawing the specific address message.

Use a sample address such as 18 Willow Lane. For this test use an explicit “Use sample address” action and place an editable-field design on a separate implementation note if needed. You can model the empty and filled steps as separate frames, or simulate them with a boolean and bound layers. Pick one technique and test it before adding a second. If you choose a boolean, a Continue attempt on an empty address should show a local instruction, while an attempt with the sample address leads to Delivery review. Keep the address choice and its validation local to this branch.
Set a concrete rule for discarded information. In this example, tapping Workshop collection clears any simulated address and address error, even if the user later switches back to courier. Keep product discussion open about whether a real checkout should retain draft details. For the prototype, choosing a rule lets the team test a specific expected result. The collection summary should only show the workshop location. In the delivery summary, say “Deliver to 18 Willow Lane” so the participant can compare the current method and details without relying on the screen title.
Use W3C’s form notification guidance to write actionable feedback. “Enter a delivery address to continue” tells a participant what is missing. In the built form, verify the association between error text and its control, and test how the page announces the feedback. Check the group’s accessible label, selection and keyboard handling against the WAI radio group pattern. A Figma click-through shows what the participant sees and chooses. Test actual keyboard and assistive technology behavior in the implemented interface.
Test a change of mind
Run the shortest failure case first. From Start over, press Continue without touching either option. The method frame should remain visible, the group should remain empty, and the instruction should appear. Then choose Courier delivery and check that the message clears. This catches mistakes where an error is tied to the initial unset state and ends up visible before someone has done anything. It also checks that a successful selection resolves the previous error immediately.

Next go to Delivery address, use the sample address, then proceed to Delivery review. Pick Change method and verify that Courier delivery is still marked. Switch to Workshop collection, continue, and read the complete summary. Collection should have its own next-step instructions and no delivery address. Then change back to Courier delivery. The address should be empty under the exercise’s discard rule. Finish with Start over and verify the opening state again. Record each step’s expected and observed result while the tester can still reproduce it.
| Sequence | Expected result |
|---|---|
| Reset → Continue | Method frame with a choice error |
| Delivery review → Change method → Collection | Collection instructions with no address |
| Collection → Change method → Delivery | Address step with an empty field |
Run the published prototype link from the starting point in Figma’s presentation view. Ask a participant to change the plan in their own words, for example “The workshop is on your way home, so collect the kit instead.” Observe whether they reach the right summary without coaching and whether they can explain what will happen next. A scripted check confirms wiring. An uncoached task helps identify unclear copy or a hard-to-find Change method action. For more tasks that probe what happens when plans change, see these Figma prototype recovery examples.
When a path fails, record the starting keys, the click, the visible selection, the destination frame, and the expected summary. If navigation works but the wrong details appear, inspect the review frame’s text and simulated address state. If both routes look right when entered directly but the switch fails, replay the whole path and inspect the first point where the mark or state diverges. Share the exercise’s three accepted transitions with engineering so the browser implementation can repeat them using real inputs, navigation and error reporting.
Before handing the link to a facilitator, write a short reset checklist next to the file. The method is unset, the hint is hidden, the sample address is cleared, and both options can be chosen. Run it twice without closing presentation view. On the second run, deliberately choose the other option first. If you have introduced a helper layer to show state during debugging, hide it in the test version so participants see the same labels they would see in the product. Keep your debugging copy for later.
For the engineering handoff, write down one more acceptance case for the edge of the decision. Activating an already selected option should leave it selected and keep the user on the method screen. This makes the meaning of the control explicit and avoids introducing a hidden fourth state where a second tap unselects the only valid choice.
Pablo Mayoral
Senior UX/UI & Web Designer with 10+ years of experience. Creator of EmviUI (10k+ components Figma design system), UImand, and Vitamin Bootstrap. Currently designing digital products at CQMRewards.