What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How can I allow customers to enter a custom added default quantity?

    Asked by vlm on December 06, 2013 at 05:08 PM

    Hello, I've created a basic form for purchasing gift certificates on a website with JotForm tools:  

    http://www.skyventurecolorado.com/SkyVenture-Colorado-Gift-Cards.htm

    It all works fine and well, however, I need the PayPal checkboxes to be fields where users can type in a quantity.  By default, they should all be zero, but users could enter any number that would update the price accordingly.  Is there anyway you can make this an option, or could someone manually help me manipulate the source code to have this functionality?

    The form is called SkyVenture Colorado Gift Certificates in my account.

    Please help, this is a very important component for my form and needs to work properly ASAP.

    Thank you,

    Jared

    jared@denverwebsitedesigns.com

    303-498-9000

    Page URL:
    http://www.skyventurecolorado.com/SkyVenture-Colorado-Gift-Cards.htm

    Screenshot
    JotForm checkboxes source quantity
  • Profile Image
    JotForm Support

    Answered by KadeJM on December 06, 2013 at 06:16 PM

    Hi Jared, I think I sort of understand where you are going with this. The closest to this that I can think of right now at the moment is changing the Quanity over to a " Custom Quantity " and then just set the Default Value of it to " 0 " or 1 or whatever other amount you want it to be. If it's changed to add more to the Default Quanity then it would automatically update the price as well.

    Example: http://form.jotform.us/form/33397270945160

    We could then hide the " Checkboxes " so that the Quantity becomes the Input per say as an example. I think that I would also have to make the the Selector for the Product somehow otherwise the hidden checkbox and the product won't be added if more is applied. I will need a little bit of time to think about this and I will get back to you about it as soon as I can.

  • Profile Image
    JotForm Support

    Answered by KadeJM on December 06, 2013 at 06:39 PM

    Pardon, It actually turned out to be a bit easier than I thought due to some updates our dev's made awhile back with which some I forgot about at the moment (sorry about that). I've realized that when the Input for the " Custom Quantity " is updated from Qty 0 to Qty 1 this will actually automatically turn the product selection to ON so that the form recognizes it. All I have done now is applied a simple CSS Code to the form to hide the checkboxes for your products.

    Here's the Injected CSS Code I currently used to hide the checkboxes:

    .form-checkbox {visibility: hidden;

    }

     

    Please take a look at the demo form again: http://form.jotform.us/form/33397270945160