On this page
What this issue is
A quiz funnel asks a visitor a few questions, shows a result (a score, a category such as "Beginner", or a recommended product) and then asks for contact details. The lead is created when the visitor submits that last form.
This issue happens when the lead is created without the quiz outcome. You get a name and an email, but the result field is empty, says undefined, or holds a default value. The quiz worked for the visitor, but the data was lost on the way to your inbox or CRM (customer relationship management tool).
Common causes:
- The result is calculated in JavaScript but never written into a form field.
- The hidden field exists but is filled after the form is submitted, or is cleared when the step changes.
- The field name in the form does not match the field mapped in the CRM or email template.
- The quiz tool and the lead form are two separate tools, and only the form is sent to the CRM.
- Answers are stored in the browser (local storage or a variable) and lost after a redirect to the result page.
- The field is disabled, so the browser leaves it out of the submission.
Why it costs you leads or sales
The result is the reason to follow up in a personal way. Without it, your sales team sees a cold contact and has to ask the same questions again. Automated emails that depend on the result (for example, a different sequence per category) either fail or send the wrong message.
The lead still exists, so the problem is easy to miss. Counts look healthy while the quality of every lead drops.
- Answers questionsQuiz steps work
- Result shownScore calculated in the browser
- Lead form submittedResult field empty or not sent
- CRM recordNo score or answers
- Personal follow-upWrong or generic message
The visitor sees a result, but the submission carries no quiz data, so segmentation and follow-up fail.
Example: share of new leads that arrive with a quiz result, before and after mapping the field. Numbers are illustrative.
How to check if your site has it
Take the quiz with a test email
Use an address you control, such as you+quiztest@yourdomain.com, and pick answers that give a result you can recognise.
Open the browser dev tools
Press F12, open the Network tab and tick Preserve log. Submit the final form.
Inspect the submission request
Find the POST request sent on submit. Open Payload (or Request) and look for the result, score and answer fields with real values.
Check the destination
Open the notification email and the CRM contact. Confirm the same values are there, not blank or
undefined.Repeat with a different result
Take the quiz again with other answers. The saved value should change. If it is always the same, it is a default.
How to fix it
The principle is the same everywhere: write the result into a form field before the lead is submitted, make sure the field is not disabled, and map that field to the CRM or email. The generic pattern for custom forms is below.
<form id="lead-form" method="post" action="/submit">
<input type="email" name="email" required>
<input type="hidden" name="quiz_result" id="quiz_result">
<input type="hidden" name="quiz_score" id="quiz_score">
<input type="hidden" name="quiz_answers" id="quiz_answers">
<button type="submit">Get my result</button>
</form>// Call this when the quiz finishes, and again on submit as a safeguard
function saveQuizToForm(result) {
document.getElementById('quiz_result').value = result.label;
document.getElementById('quiz_score').value = result.score;
document.getElementById('quiz_answers').value = JSON.stringify(result.answers);
sessionStorage.setItem('quizResult', JSON.stringify(result));
}
document.getElementById('lead-form').addEventListener('submit', function () {
var saved = sessionStorage.getItem('quizResult');
if (saved) { saveQuizToForm(JSON.parse(saved)); }
});Add hidden fields to the form
In your form plugin (for example Gravity Forms, WPForms or Contact Form 7), add hidden fields named quiz_result, quiz_score and quiz_answers. The exact menu depends on the plugin.
Fill them from the quiz
If your quiz plugin offers a result merge tag or dynamic value, use it as the hidden field default. Otherwise use the JavaScript snippet above to set the values.
Map to the CRM or email
In the form's notification or CRM feed settings, map each hidden field to a CRM field. Add the fields to the email body too.
Add hidden inputs
Add an Embed element inside the form with the hidden inputs, or add Custom Attributes to form fields, so each has a clear name.
Set values with a script
Add the JavaScript above in Page settings > Custom code, before the closing body tag, and publish.
Check the form settings
In Site settings > Forms, confirm notifications or the integration receive the new fields. Test with a real submission on the published site.
Add custom fields
In Settings > Custom Fields, create fields for the quiz result and score.
Add hidden fields to the form or survey
In the form builder, add Hidden fields and link each to the matching custom field, so the value is saved on the contact.
Fill the values
Set the value through your quiz script or a URL query parameter that the hidden field reads. Submit a test and check the contact record.
Use a form that stores custom fields
In Wix Forms, add fields for the result and score, or use Velo to write them into your collection.
Set the value on finish
With Velo, set the field value from your quiz code before calling the submit action.
Check submissions and automations
Open the form's submissions and confirm the values appear. Update any automation or email that should use them.
Add the hidden inputs
Add inputs with fixed names to the final form, as shown in the HTML above. Do not mark them disabled.
Set values before submit
Write the result into the fields when the quiz finishes and again on the submit event. Keep it in sessionStorage so a page change does not lose it.
Handle it on the server
Make sure your endpoint reads quiz_result, quiz_score and quiz_answers and passes them to the CRM or email. Log what you receive while testing.
How to confirm it's fixed
Run the quiz again
Use a new test email and choose answers that give a known result.
Check the request
In the Network tab, confirm the submission payload contains the result, score and answers with real values.
Check the inbox and CRM
Open the notification email and the contact record. The values must match what you chose.
Try a second outcome
Repeat with different answers and confirm the saved value changes.
How to prevent it happening again
- Keep a written list of quiz field names and the CRM fields they map to.
- Re-test the full quiz after changing the form, the theme, the quiz tool or the CRM mapping.
- Do not rename hidden fields without updating the mapping.
- Store the result in sessionStorage or a server session so a redirect cannot lose it.
- Make the CRM field required in your reports so empty values stand out.
- Run an automated check on a schedule, not just after launches.
How FunnelGuard handles this
FunnelGuard detects this issue today. A robot visitor runs your quiz journey on a schedule, from the EU or the US, answers the questions and submits the final form with a marked test lead. The check then looks at the submission payload and confirms it contains the quiz result data you expect (a payload_contains check). If the values are missing, the run fails.
A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause. FunnelGuard can also check that the test lead reaches the inbox and CRM. Test traffic is marked (utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent), so you can filter it out. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans include a 3-day free trial.
Questions people ask
Why is my quiz result not saved with the lead?
Most often the result is calculated in the browser but never written into a form field, so it is not part of the submission. Other causes are a hidden field filled too late, a disabled field, or a field name that does not match the CRM mapping.
How do I save quiz answers to a contact in my CRM?
Add hidden fields for the result, score and answers to the final form, fill them before submit, then map each field to a CRM custom field. Submit a test lead and check the contact record to confirm the values arrive.
Why does my hidden field show undefined or stay empty?
The script probably runs before the quiz finishes, or it targets an element ID that does not exist. Set the value when the quiz completes and again on the form's submit event, and check the field name and ID match your code.
Why does the quiz result disappear after the redirect to the result page?
Values kept in a JavaScript variable are lost when the page reloads. Store the result in sessionStorage, a cookie or a server session, and read it back into the form on the next page.
How can I tell if the result is in the form submission?
Open dev tools with F12, go to the Network tab, submit a test lead and open the POST request's Payload. If the result and score fields have real values, they are being sent.
Do disabled form fields get submitted?
No. Browsers leave disabled fields out of a form submission. Use a hidden input, or a read-only field, if you want the value to be sent.
Can I monitor this automatically?
Yes. FunnelGuard runs your quiz on a schedule with a marked test lead and checks that the submission payload contains the expected quiz result data. It alerts you with a screenshot and a likely cause if it does not.
Related issues
- CNV-077Quiz answers not passed to CRMFix guide
- CNV-076Partial lead capture (step 1 email) not storedFix guide
- CNV-074Quiz result page blank or genericFix guide
- CNV-081Typeform/Jotform hidden fields (UTMs) not passedFix guide
- CNV-070Back button loses earlier answersFix guide
- CNV-069Next button does nothing on step NFix guide