Skip to main content
Solved

Passing additional parameters with signup form

  • October 3, 2024
  • 1 reply
  • 43 views

Forum|alt.badge.img

Hello there,

I am integrating the Klaviyo form with Shopify. I have a requirement where I have to pass an additional parameter with the form. But I tried many ways and it is not working, the parameter is not going through. Could some one help me fix this.

 

The additional parameter I am passing here is bmi_results.

 

{%- form 'customer', id: 'bmi-email', class: 'form' -%}
        <div class="">
          <p>Vul je emailadres in om jouw BMI score te ontvangen</p>

          <div class="input">
            <input
              type="email"
              id="bmi[{{ section.id }}][contact][email]"
              name="contact[email]"
              class="input__field"
              required
            >
            <label for="bmi[{{ section.id }}][contact][email]" class="input__label">
              {{- 'general.newsletter.email' | t -}}
            </label>
          </div>

          <div class="input">
            <input type="hidden" name="contact[tags]" value="bmi-calculator"/>
            <input type="radio" name="bmi_result" id="bmi_results" value="100" checked/>

            <input type="hidden" name="$fields" value="EmailInterests,EmailFrequency,bmi_result" />
            <input type="hidden" name="$list_fields" value="EmailInterests" />

            <div class="consent-selection" style="margin-bottom: 10px;">
              <label>
                <input type="checkbox" name="consent" required>
                <span
                  >Ik ga akkoord met de <a href="/policies/privacy-policy"><b>privacy verklaring</b></a></span
                >
              </label>
            </div>
            <button id="sendEmail" type="submit" is="loader-button" class="button button--primary">
              {{ section.settings.send_button_text }}
            </button>
          </div>
        </div>
      {% endform %}

 

Best answer by TimMartinHarvey

Hey Ginthozan,

Welcome to Klaviyo Community! 

Just to confirm, the BMI Result you are looking to add is an empty field you want the user to populate on sign up correct? Or you want to display the value in response to a form completion?

Thanks
Tim

 

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

TimMartinHarvey
Problem Solver III
Forum|alt.badge.img+4

Hey Ginthozan,

Welcome to Klaviyo Community! 

Just to confirm, the BMI Result you are looking to add is an empty field you want the user to populate on sign up correct? Or you want to display the value in response to a form completion?

Thanks
Tim