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

    Drop Down field with different prices for each of the product items

    Asked by TheGym on November 06, 2015 at 08:36 PM

    Is there a way to set a drop down box with different prices for different items, and then it will calculate the total owed?  

     

    For example.

     

    Option 1:  Morning Session (8:30am – 12:00pm)-------------------------------------------$75 for 3 days

    Option 2:  Evening Session (1:00pm – 4:30pm)----------------------------------------------$75 for 3 days

    Option 3:  All day (with no lunch) -------------------------------------------------------------$120 for 3 days

    Option 4:  All day (includes lunch = pizza / snack / and 20 oz Gatorade or soda) -----$135 for 3 days

     

    Option 5:  Daily drop in for either session----(add $5 for lunch, as applicable)------------$40 each day

    purchase session drop down calculation values assign calculations
  • Profile Image

    Answered by grade4pagasa on November 06, 2015 at 10:23 PM

    Hi @TheGym.

    I made 2 options for you to compare:

    Radio button layout

    DropDown menu layout

    Hope this helps. But if it doesn't meet your needs, you can wait for the solution offered by the JotForm Support team.

    - Randy, fellow JotForm user.

  • Profile Image
    JotForm Support

    Answered by Boris on November 07, 2015 at 06:41 AM

    Yes, this is very much possible, as our friendly user Randy kindly demonstrated in his demo forms. For both of the layouts Randy has used, radio layout and dropdown layout, you must first start off by assigning calculation values to each of the product items:

    How to Assign Calculation Value

    When assigning calculation values to a drop down field, please do note that the first calculation entry should be set to zero (0), because the first calculation value equals to when nothing is selected in a drop down:

    You can then perform calculations based on selected items in your drop down field:

    How to perform calculation in the form?

    Finally, in case that you also want to forward this calculated value to a payment processor tool in order to receive the payment, you can do that by following this guide:

    How to pass a calculation to a payment field

    If you need further clarifications or assistance, please do let us know, and we will be happy to help.

  • Profile Image

    Answered by TheGym on November 09, 2015 at 03:42 PM

    ok I am almost there BUT how and where do I go to assign the calculation values?

  • Profile Image
    JotForm Support

    Answered by david on November 09, 2015 at 04:56 PM

    Here is our guide on how to assign calculation values:

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

    Click on the drop down, then click on the little gear in the top right of the field.  That will bring up the options for that specific field. 

    From there, you can assign calculation values for your options. 

  • Profile Image

    Answered by Shawn  on November 09, 2015 at 05:00 PM

    Thank you so much, this information was extremely helpful for our site http://partitionplus.com 

     

    Feedback: I'd try and create a section that scraped these pages and pulled useful information to a generalized page.