Here’s a step-by-step guide to help you get started:
What’s a variable field in Formaloo?
A variable field is like a hidden calculator running in the background of your form. It’s never visible to your users, but it automatically tracks numbers, scores, or calculated results as people interact with your questions.
Think of it as your form’s silent scorekeeper or data processor, always working behind the scenes.
What can you use variable fields for?
Add up points for each correct answer in a quiz or assessment
Calculate totals in shopping carts, price estimators, or order forms
Track category scores such as “Type A” vs “Type B” in a personality test
Sum up overall scores in evaluations, surveys, or training modules
Store any number you want to use for personalization, calculations, or logic
Step-by-step guide to setting up scoring
Step 1: Create a new quiz
Log into your Formaloo account or register for free.
Click + New and select Form or Survey.
You can also choose a template from the template gallery.
Step 2: Add your quiz questions
Add different types of questions (single-choice, multiple-choice, short answer, etc.) to your form. Formaloo supports a variety of question types to make your quiz more engaging.
Step 3: Add variable fields
In the left sidebar, click Add next to Variables to open the variable creation panel.
When adding a variable field, you’ll be asked to select its type:
Integer stores whole numbers, such as scores or counts.
Decimal stores numbers with decimals, such as prices or percentages.
Text stores plain text values, such as “Builder” or “Explorer”.
Formula calculates values based on logic or other variables.
Example:score_total / 10
orif(score_total > 50, "Pass", "Fail")
Give your variable a clear ID, such as
score_total
ortype_a
.
If you skip this step, a default ID like variable
will be assigned.
📝 Additional insights:
You can edit a variable field’s name or ID anytime by clicking on the field in the right sidebar. If you update the ID, make sure to update it everywhere you’ve used it.
This ID can be used for answer piping, which lets you display the value of that variable inside messages, success pages, emails, PDFs and more.
Step 4: Use logic to assign points
You can assign points to each field in two ways:
Field Logic
Advanced Logic
Option 1: Field Logic
This runs immediately after the user answers a specific question.
Let’s say your question is: “You would describe yourself as:”
If someone selects “Outgoing and sociable,” and you want to add 1 point to type_a
, Do the following: Go to the Logic tab / Click + Add Rule
Set the condition:
If You would describe yourself as: = “Outgoing and sociable”
Then add 1 to variable type_a
Since your variable type is Integer, you're adding a numeric value.
Option 2: Advanced Logic
Go to Settings → Advanced Logic.
Create logic rules like:
If You would describe yourself as: = “Outgoing and sociable”
Then add 1 to variable type_a
In Formaloo, you can use variable fields with three types of logic, depending on when you want the calculation to occur:
Field Logic – Executes instantly when a user answers a specific question.
On Submit Logic – Triggers after the form is submitted.
Update Logic – Useful for updating responses or running background workflows after submission.
Step 5: Show total score using answer piping
Answer piping lets you display the total graded assessments to the respondents at the end of the quiz.
You can display the total score in a specific section field at the end of the form. This provides immediate feedback to the quiz takers.
Customize the success page
Go to your Ending Page or add a Content field at the end of your form
Type a message like:
“You’re most like Type A — with a score of @type_a”
You can include one or more variables in the same message to create a personalized summary.
📝 Additional insights:
How to auto-grade your quizzes
You can set up logic to automatically grade your quiz once the correct answers and scoring system are defined.
Formaloo will automatically grade responses based on your logic, saving you time and effort.
Learn how to auto-grade your quizzes.
Step 6: Share the quiz
You can share your quiz with your audience via different methods:
Generate a shareable link: Formaloo provides a unique link for each quiz. Copy this link to share it via email, or social media, or embed it on your website.
Customize Access: You can customize access settings to control who can take the quiz. Options include public access, password protection, or restricting access to specific email addresses.
🧩 Template:
Self-grading math quiz template
Use this template to create a math quiz that automatically assigns scores based on correct answers.
Access the self-grading math quiz template.
Step 7: Share the results
Formaloo makes it easy to share quiz results with respondents.
Automatic emails
Set up automatic emails that send quiz results as soon as someone submits the form. You can create custom email templates and personalize the message using answer piping like
@type_a
or@answers
.Download reports
Download quiz results as a PDF or Excel file for further analysis or documentation.You can also create personalized PDF templates to include scores, badges, or feedback.
Integrate with other tools
Connect your quiz results to CRM systems, LMS, or other platforms for seamless data management.
📝 Additional insights:
How to calculate multiple scores using variable fields
If you want to calculate more than one variable and track different scores (e.g., Math, Science, History), you can add more variable fields.
Each field should have a unique ID (e.g., math_score
, geography_score
, history_score
), and then you can sum them up in a total score field.
Automate actions with "On Update" logic
Looking to streamline your workflows even further? With "On Update" logic, you can automate actions not just when a form is submitted, but whenever a response is updated.
🔗 Learn more about how "On Update" logic works and how to set it up:
👉 What is "On Update" logic and how it works? 🚀