New Layout: Product option is not selected by default on form

  • Profile Image
    gflandre
    Asked on August 22, 2017 at 03:10 PM

    Thank you for fixing this issue.

    However, there's still some behavior that I would like to understand: it seems that I am able to go to the payment form without selecting an option associated to a product.

    Think of shoe sizes for example, isn't it weird to be able to order shoes without specifying a size?

    There doesn't seem to be an option for this.

  • Profile Image
    david
    Answered on August 22, 2017 at 03:22 PM

    To set up sizes, you would need to set up a sub-product for each size offered.  Here is our guide on setting up sub-products:

    https://www.jotform.com/help/264-Create-Sub-Products-Based-on-a-Product-Option#_

    You could also set the products up outside of the payment field which would give you more control over what types of fields are used and allow for more customized products but would also require a much different set up.

    https://www.jotform.com/help/323-Mastering-Payment-Form-Integrations-with-JotForm

    Basically, you would user regular fields to set up your products and assign calculation values:

    http://www.jotform.com/help/301-How-to-Assign-Calculation-Value

    You would then use those values in a calculation field:

    https://www.jotform.com/help/259-How-to-perform-calculation-in-the-form

    You would then pass that total to the payment field:

    https://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field

     

  • Profile Image
    gflandre
    Answered on August 22, 2017 at 03:27 PM

    Hey David,

     

    This question was moved from another thread so it misses the initial context which is that I'm using Stripe as a payment provider.

    It seems that Stripe only allows to create subproducts from options if there's a quantity field (I don't need one)

    Also, I don't think the calculation field works with Stripe, right?

    Thanks for helping,

    Guillaume

  • Profile Image
    david
    Answered on August 22, 2017 at 03:42 PM

    Sub-products do require a quantity to be present.  If it's single selections, you would need a single product for each size instead of using sub-products.

    Calculations values can be passed to Stripe.  That set up works the same regardless of the payment processor.   

  • Profile Image
    gflandre
    Answered on August 22, 2017 at 03:51 PM

    Sure, but that would mean having something like:

    [] T-shirt Green

    [] T-shirt Yellow

    [] T-shirt Blue

    [] T-shirt Black

    [] T-shirt Red

    ...and so on which is a bit over the top in my opinion (imagine for shoe sizes)

     

    For the calculation field, from what i understand, that would mean having a User defined value, which is a totally different way of paying, and not the one I would like to offer, as customers would be able to manipulate the amount.

  • Profile Image
    Mike
    Answered on August 22, 2017 at 05:30 PM

    The product option should not be empty. It seems to be an issue in our new layout and we will ask our developers to check this.

    The calculations can be based on different fields (e.g. number, radio button, check box, dropdown, etc), please see the next guide to get an idea on this.

    How to Perform Form Calculation Using a Widget

    Once the value is calculated it can be set to the read only mode and passed to the payment field.

    How to Pass a Calculation to a Payment Field

  • Profile Image
    gflandre
    Answered on August 23, 2017 at 05:38 PM

    Hello Mike,

     

    Thanks for your answer!

    Let me know when this gets fixed.

     

    Best,

    Guillaume

     

  • Profile Image
    kutlu
    Answered on August 24, 2017 at 11:00 AM

    Hi,

    The issue has been fixed. Now there is default selected option for options.

    Regards