How can I associate prices with dropdown menu items?

  • juliaannstarke
    Asked on June 25, 2015 at 10:08 AM

    Right now, 'My Products' is a long, clunky list. Is there a way to associate prices with items listed in a dropdown menu?

  • Boris
    Replied on June 25, 2015 at 11:30 AM

    Hello.

    On a regular Drop Down field, you can assign prices / calculation values to its options. (How-to-Assign-Calculation-Value)

    However, if I understand your request directly, you would like to have your Payment Tool with products in a drop down, rather then having them listed as they are now.

    How can I associate prices with dropdown menu items? Image 1 Screenshot 20

    We do not support turning your product list into a drop down in your Payment Tool at this time, but if you like, you can use regular fields to make this happen.

    You would need to use a regular Drop Down and assign calculation values to its options, as explained in the guide linked at the start of my post.

    Then, you would simply need to add a Calculation field to calculate the total value, and pass this total value to your payment tool.

     

    Besides this, I have noticed that there is a scripting conflict on your website between the scripts of the form, and scripts of your page. This is preventing your Payment Tool calculations from properly calculating the total values. I would recommend that you please try using the iFrame embed method instead, which will make sure that your form is sandboxed from the page, and prevent such scripting conflicts.

    Please let us know if you need further assistance.

  • juliaannstarke
    Replied on June 26, 2015 at 2:46 PM

    Boris,

     

    This was so helpful - thank you! I have updated everything and used assigned prices on my dropdown menu and radio button items, but now I am wondering how to have a total amount calculated?

     

    Thank you,

    Julia Ann

  • Mike
    Replied on June 26, 2015 at 3:52 PM

    You can use Form Calculation widget field(s) to sum the total amount.

    How can I associate prices with dropdown menu items? Image 1 Screenshot 20

    There is a link to related guide:

    How to perform calculation in the form

    If you need any further assistance, please let us know.

  • juliaannstarke
    Replied on June 26, 2015 at 3:59 PM

    Thank you very  much. Does this also apply to dollar amounts? It looks like it is just totaling a numeric amount. 

  • Mike
    Replied on June 26, 2015 at 4:05 PM

    You are welcome. In case you need a dollar sign, you can add it directly into the Calculation field output.

    How can I associate prices with dropdown menu items? Image 1 Screenshot 20

  • juliaannstarke
    Replied on June 26, 2015 at 4:06 PM

    Nevermind I figured it out I think.