How can I creat a price calculation based on "Fixed and variable" selections

  • PTD_180
    Asked on September 22, 2018 at 5:03 PM

    i am creating form its objective is to calculate price values based on user selections from:

    1: Device type (iPhone or i pad) "one selection only"
    2: Model (5, 5s, 6, 6s,...etc) "one selection only"
    3: Problem (screen, battery, sensor...etc) "can be multiple selections"

    based on the selection from each of the above, a different price should be calculated;

    for example:

    iPhone 5 screen only cost 20$
    iPhone 6s screen only cost 30$
    iPhone 6s screen + battery cost 30$ + 35$ =65$

    how can i perform this calculation setup for all the variable in my form and add how can i add a total filed to show the total ?

    appreciate any help <3

     

  • jonathan
    Replied on September 22, 2018 at 7:31 PM

    You can use the Assign Calculation Values features of the fields. And then add the Form Calculation widget.

    User guide: How to Assign Calculation Value

    Example:

    1537658668zzz 2018 09 23 07 Screenshot 10

    1537658687zzz 2018 09 23 07 Screenshot 21

    1537658734zzz 2018 09 23 07 Screenshot 32


    add the Form Calculation widget to do calculations of all the assigned calculation values from fields.

    1537658798zzz 2018 09 23 07 Screenshot 43



    You can test my demo form https://form.jotform.com/82647826566976

    It should work like this


    1537658937zzz 2018 09 23 07 Screenshot 54

    1537658951zzz 2018 09 23 07 Screenshot 65

    1537658966zzz 2018 09 23 07 Screenshot 76

    1537658987zzz 2018 09 23 07 Screenshot 87


    Let us know if you need further assistance.

    ---

    Related guides:

    https://www.jotform.com/help/259-How-to-Perform-Form-Calculation-Using-a-Widget

    https://www.jotform.com/help/275-How-to-Pass-a-Calculation-to-a-Payment-Field




  • PTD_180
    Replied on September 23, 2018 at 5:51 AM

    Thank you very much jonathan, but the thing is how can i add more than one price for each model for example :

    iPhone 6 screen is not the same price as the 6s screen and so for all the other parts.

    so each model part price is different, is there a way to do this ?


    Thanks again :)

  • liyam
    Replied on September 23, 2018 at 6:45 AM

    If you are referring to the accessories, perhaps you can set a condition which will show a different card for certain options. Example, if you choose 6s, your condition will show a page which only show those which can be available for 6s. Please check out this user guide for more information about conditions: https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    If you need assistance, please let us know.

  • PTD_180
    Replied on September 23, 2018 at 6:49 AM

    Thank you liyam,you right this could be a solution, but i will have to create many cards for each model, i think there might be another way around to do this !

    Best Regards, :)

  • DonaldHag
    Replied on September 23, 2018 at 7:37 AM

    This is the best way to achieve this with the way your form is currently set up and the Widgets you are using. Since the prices for each phone model are different, it makes them different parts. To do this quickly you can duplicate fields instead of creating them afresh.

    Refer to  this guide: https://www.jotform.com/help/242-How-to-Manage-Multiple-Fields


  • PTD_180
    Replied on September 23, 2018 at 1:42 PM

     Thank you DonaldHag, i think i will go ahead and try it this way.


    Thank you all for the support <3