JotForm User Guide / Payment Forms /

Create Sub-Products Based on a Product Option

Create Sub-Products Based on a Product Option

There are times when you offer a product with multiple variants and you want your customers to be able to choose many of them. Instead of creating a separate product entry for each variant, JotForm can automatically create sub-products for you by specifying which option to base them from.

Say, you are selling T-shirts, and you are offering them in Red, Green, Blue, and Yellow. By ticking this check box, the specified product option will be broken down into sub-products from which your customers can choose.

Here are the steps on how you can setup sub-products on your payment field.

1. First, I presume you are already familiar on how to setup a payment/order form? You can check this guide for the basics.

2. Now we can only create sub-products if and only if the PAYMENT TYPE option is set to SELL PRODUCTS.

3. In the payment wizard after adding a product, you need to first add a QUANTITY.

4. Now select "Dropdown" or "Textbox" in the "Show Quantity on the Form as" section, then save the changes by clicking the "Save Quantity" button.

5. In the product details, you can see that you already have the QUANTITY there. Next, we add a Product OPTION.

6. Here you can define your sub-products. In this case, I want to have different color options for my t-shirt product. You'll need to enable the "Create Sub Products from Options". Then list them down in the "Options" table. Click the "Save Option" button to save the changes.

7. In the product details, you will now see these two attributes on your product, a QUANTITY and OPTION. Click the "Save Product" button to save the changes.

8. Here's an example form that has a sub-product option:

What if you want each variant to have a different price? Easy, by enabling the "Special Pricing Per Option", you will be able to specify a price for each particular variant. Here's a guide for that: What is Special Pricing

Comments and suggestions are welcome below. If you have a question, post it in our Support Forum so we can assist you.

Contact Support:
Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:
Contact JotForm Support:

Send Comment


  • ddvargas10

    What if we want to add our own pre-sets that are different than the ones provided, do we have that option?

  • Ed Clayman

    Under product option... can an "image and description" be displayed for each option with a seperate price for each?

  • RedRoverPromotions

    But how can people choose the t-shirt size. We've let them choose the quantity and the color, but what if they want the following:
    1 Black in a medium
    1 red in a large
    1 red in a medium?

    Is there a way to accomplish this?

  • Megan_laughinghouse

    Can you create subproducts for more than one option? For instance, we offer 2-3 logos for each item. If someone wants to buy 2 grey t-shirts, one in each logo, they won't be able to. They also won't be able to buy two different sizes of the same color shirt. So if they wanted 2 grey sweatshirts, one small & one medium, they won't be able to make that happen if there is only one subproduct option. (I really am against the show/hide condition because I don't think people will see it)

  • Tejas3108

    Dear Sir,

    But at last it will show some invalid error after submitting.

  • asonpvl6hf

    buy retina

  • metalsunny

    is it possible for me to add a download link to each sub product on a single product in the case of digital download?

  • victoriousgrant

    This doesn't work on my form. when i try to click sub products there is a line through it.

  • Stevenbuller

    doesnt calculate decimals, i wanted to use this function to add an option to define extra hours of service to a purchase order.

  • groca


    I'm trying to do exactly what you have in your first example above. T-shirts size with quantity. A quantity option is present. I want the user to be able to choose from different t-shirt sizes and select a quantity for each one.

  • dusty_444

    Create sub-products is lined out on all options - Using standard PayPal

  • natlmedia

    what if the price is different for each quantity (within the subcategories) ? Say Red shirts are $10 each when they buy 2 or more. but when they buy just 1 the price is $12. Can it do this?

  • Creeksidetshirts

    Only numeric values are accepted is shown when I try to use special pricing

  • neilmsheldon

    It would be nice to be able to set custom quantities for the subproducts, instead of a drop down.

  • wvu1996

    it would nice to be able to subdivide by color and size

  • socialgoodsco

    One more follow up comment - This only happens when my quantity is set to custom quantity (blank form field to fill in qty). I thought as a workaround I might try changing the quantity field to a dropdown instead - but this causes part of the form to cut off. When I set the qty field to a dropdown, I see 2 and a half color options (out of the 18 I input), and the rest are cut off. The third option is cut in half right down the middle and the others dissappear.

  • socialgoodsco

    Just a follow up to my above question, I am using payment wizard, I believe it is the "purchase order" - the option that does not integrate with actual payment at checkout.

  • socialgoodsco

    No matter how many products I list under the option, only the first 2 ever show up in the form preview. Any fixes to this?

  • omacworld

    Was hoping to (ab)use this and "Shipping" as a "setup" fee for an event registration. I am setting up a martial arts tournament and have multiple events in the tournament (sparring, performance, wood breaking, etc). I want to charge $50 for the first event and $10 for each additional event. I thought I could set up an Event product and create sub-products at $10 each, then set a shipping charge of $40 for the first Event product. Unfortunately, it treats each sub-product as a new product and charges the shipping for each one. Is there any other way around this?

  • Mark Targett

    "enable special pricing" has a strike through it and i cannot enable.