What you'll build
By the end of this guide, you'll know how to build complete form logic, show/hide rules, branching, formulas, scoring, and ending page routing, just by describing what you want in plain English.
When to use this
You want to add advanced logic like conditional follow-up questions, scoring, or success message personalisation to a form, but building every condition by hand feels like a lot of clicking.
You already have some logic set up and want to add more without breaking what's there.
You know the outcome you want, e.g., "route high scorers to a different page", but not how to express that in Formaloo's advanced logic builder.
You're building a quiz, application, or qualification form where scoring and branching need to work together.
Before you start
💡 Don't have a form yet? Use Magic Create to generate one from a prompt, or import an existing form, then come back here to add logic once your fields are in place.
Magic Logic connects pieces you've already built, it doesn't create the form or its fields for you. Make sure you have:
Every field your rule will mention, already added to the form;
The ending pages you want to route people to, already created;
Any email or PDF templates you want to be sent via logic.
⚠️ Keep the limits in mind too:
Magic Logic won't create new fields, new ending pages, or new templates for you, and it can't send SMS or trigger actions Formaloo doesn't support.
If you're building a formula, every field referred to in it must already have an ID; Magic Logic can't auto-assign one.
Where to find Magic Logic
You can open Magic Logic from two places, and they both do exactly the same thing:
Advanced logic — open your form, click Form settings on the right panel, then Advanced logic. This is where power users already manage Field logic, On submit, On update, and calculation rules.
Logic map — if you'd rather see your form's branching as a visual flow, open the Logic map instead.
Pick whichever view you're already working in. The 🪄 Magic Logic button, and everything it does, is identical in both places.
What Magic Logic can build
Describe your goal in plain English, and Magic Logic can turn it into any of these:
Show or hide fields based on conditions —
"if Customer Type is Enterprise, show Company Size";Branch people to different questions or pages —
"skip the security questions for Startup customers";Write formulas using your existing fields —
"multiply Quantity by Unit Price and add Tax";Score and calculate values — lead scoring, quiz scoring, risk scoring, qualification scoring;
Route to ending pages based on conditions —
"if the score is above 80, go to the Enterprise Success Page";Create missing variables automatically, including formula variables, when your rule needs one;
Trigger actions on submit or on update — assign a value, send an email, or generate a PDF.
ℹ️ See how On submit and On update logic works for the full list of actions.
Inside Magic Logic: Explain, Suggest, and Generate
Once you open the panel, you'll find three parts working together:
Explain, which tells you what your current logic already does;Suggest, which recommends new logic based on your form;Generate, the prompt box where a goal, written by you or copied from a suggestion, turns into real logic rules:
➔ Explain: See what your form's logic already does
Click Explain to get a plain-English summary of every rule currently applied to your form, handy when you've inherited a form someone else built, or you just haven't looked at its logic in a while.
You click it, and you get a readable summary instead of a wall of conditions:
➔ Suggest: Let Magic Logic recommend logic for you
Click Suggest;
Magic Logic scans your form — your fields, pages, formulas, and ending pages, and lists logic it thinks would help;
Read through each suggestion. They're written in plain English, the same way detected rules are, so you can tell exactly what a suggestion would do before using it;
Click Copy on any suggestion you want to use. This drops its text straight into the Generate box below;
Repeat for as many suggestions as you like, you can combine more than one, or copy just one and edit it, before generating anything:
ℹ️ Copying a suggestion doesn't apply anything to your form yet. It only fills in the Generate box, you still need to run it through Generate and click Approve.
➔ Generate: Turn your prompt into real rules
This is where it all comes together, whether you typed your own goal from scratch or started from something you copied out of Suggest.
1. Enter your prompt
Type your goal directly, or paste in a suggestion you copied and edit it to fit exactly what you want.
👀 Example prompt:
Score each question (q1-q23): option 1 = +1 gryffindor_score, option 2 = +1 ravenclaw_score, option 3 = +1 hufflepuff_score, option 4 = +1 slytherin_score.
On submit route to Welcome to Gryffindor if gryffindor_score is the greatest.
On submit route to Welcome to Ravenclaw if ravenclaw_score is the greatest.
On submit route to Welcome to Hufflepuff if hufflepuff_score is the greatest.
On submit route to Welcome to Slytherin if slytherin_score is the greatest.
ℹ️ Tips for a better result
Use the exact field names as they appear in your form — "Company Size," not "company info"
Use the exact ending page names — "Enterprise Success Page," not "the enterprise page"
Say the word "formula" if you want a formula variable
For Yes/No fields, say "is Yes" or "is No" — not "is checked" or "is true"
2. Click Generate rules
Magic Logic reads your existing fields, pages, ending pages, and any current logic, then builds a proposed rule set.
3. Review the detected rules
Magic Logic shows every rule it plans to create as a plain-text list, one rule per line, no JSON, no rule builder.
👀 Example:
If "Customer Type" is equal to "Enterprise", then show "Company Size".
If "Lead Score" is greater than "80", then go to ending page "Enterprise Success Page".
4. Click Approve, or click Redo to refine your prompt.
Approve applies every rule on the list to your form at once;
Redo takes you back to the text box with your original wording still in it, so you can edit or add detail instead of retyping everything:
5. After you approve, you'll see a confirmation like "Magic Logic applied 7 rules to your form."
You can then review the rules in Advanced Logic and the Logic Map;
You can make any manual edits in Advanced Logic, and then click Save to keep changes:
Final result
You now have a repeatable way to build show/hide rules, branching, formulas, scoring, and ending page routing, plus on submit and on update actions, by describing them instead of configuring each condition by hand. Every rule you approved is live in Advanced logic and reflected in the Logic map, ready to adjust the same way next time.
Ready to build?
🚀 Use this template Start in minutes with a pre-built version of this workflow.
💬 Get help from our concierge team Our team will help you set this up for your specific use case.
📅 Book a demo for Team/Enterprise setup See how teams use Formaloo at scale with advanced permissions and integrations.






