Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Quiz result not saved with the lead: how to find and fix it

CNV-075Medium impactDetectedBy FunnelGuardPublished Updated
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:

Typical 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.

Where the result gets lost
  1. Answers questionsQuiz steps work
  2. Result shownScore calculated in the browser
  3. Lead form submittedResult field empty or not sent
  4. CRM recordNo score or answers
  5. Personal follow-upWrong or generic message

The visitor sees a result, but the submission carries no quiz data, so segmentation and follow-up fail.

Leads with usable quiz dataExample numbers
Leads with usable quiz data (example)Before fix: 0 %; After fix: 100 %038770100Before fixAfter fix%

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

Check by hand in about five minutes
  1. 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.

  2. Open the browser dev tools

    Press F12, open the Network tab and tick Preserve log. Submit the final form.

  3. 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.

  4. Check the destination

    Open the notification email and the CRM contact. Confirm the same values are there, not blank or undefined.

  5. 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.

Hidden fields in the lead formhtml
<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>
Fill the fields just before submitjavascript
// 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)); }
});
Fix by platform
  1. 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.

  2. 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.

  3. 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.

How to confirm it's fixed

Confirm with a fresh test lead
  1. Run the quiz again

    Use a new test email and choose answers that give a known result.

  2. Check the request

    In the Network tab, confirm the submission payload contains the result, score and answers with real values.

  3. Check the inbox and CRM

    Open the notification email and the contact record. The values must match what you chose.

  4. Try a second outcome

    Repeat with different answers and confirm the saved value changes.

How to prevent it happening again

Prevention checklist
  • 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: payload_contains.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.