How do I create a PayPal form where selecting the quantity provided will provide additional options?

  • Profile Image
    Philip Magnus
    Asked on May 23, 2012 at 08:09 PM


    I am impressed by your website and I am seriously considering sigining up, but I want to know if you have the following capability...


    I sell tickets to various charity events. I want a form to integrate with our PayPal account.
    I need the form to start off by asking if you want Member or Non-Members tickets (easy enough so far). I then want the user to select how many tickets they want (again, this is simple enough to do with your form bulider).

    Now this is where is gets complicated.... once the user has selected how many tickets they want to buy I want the form to populate fields asking for "Name", "Email" and "Age" of all the people going. So if someone selects they want 3 tickets, I need the form to generate the text boxes 3 times requesting the name, email and age of each of the ticket holders.

    Would this be possible with your system? Please let me know.

    Many thanks,


  • Profile Image
    Answered on May 23, 2012 at 08:59 PM

    Unfortunately this cannot be accomplish literally in such scenario.

    However , a workaround could be accomplished if you first add 3 or more set of boxes for get the desired information and also you add a dropdown menu after each set. Then you can set up a show/hide conditional logic so everytime they select yes, a new set of boxes would appear.

    Then customers can use the quantity option into tye Paypal form and  select 3 tickets

    Feel free to come for more assistance if you need it.



  • Profile Image
    Philip Magnus
    Answered on May 24, 2012 at 05:29 AM

    Thanks, Jeanette.

    I understand the first part of your suggested workaround, but would I be right in thinking that after filling in the details for 3 people one could then go ahead and only select "1" as the quantity of tickets required? Is there a way I can stop this from happening? i.e. if someone fills in the details for 3 people then the quantity will automatically adjust to 3?



  • Profile Image
    Answered on May 24, 2012 at 03:35 PM

    Hello Phillip

    Like I said ,there is no way to accomplish what you are looking for so far

    As another workaround , I would suggest you to download your form's source code and then insert a javascript code on your page's head tags.

    Something like the one below : (I have downloaded my form's source code)

    function compareFields(obj) {

    var x=document.forms["form_20854747231858"]["q25_numberOf.form-textbox"].value;

    var y=document.forms["form_20854747231858"]["q18_galaEvent[special_1002][item_0].form-dropdown].value;

          if (x!==y)
           alert("Please set the correct amount of attendees");
           return false;

    Then, in your form tag, add this attribute:

    onsubmit="return compareFields(this)"

    So it will look something like this:

    <form class="jotform-form" action="" method="post" name="form_20854747231858"

    id="20854747231858" accept-charset="utf-8" onsubmit="return comparedFields(this)">


    Best regards