How can I populate a price field based on the value selected from the dropdown list

  • bakeitallbetter
    Asked on July 5, 2014 at 6:52 PM

    I am creating an order form and I will have a drop-down list of items.  I want a 'Price' field to automatically populate based on the drop down selection.  For example, cookies are $1.50 each.  The user will select the type of cookie from the drop down and select the quantity.  However, I do not want the user to enter the price themselves.

  • Elton Support Team Lead
    Replied on July 5, 2014 at 9:08 PM

    Hi,

    Yes that's possible.

    1. First, you have to add calculation values to your dropdown options. 

    Check this screenshot to learn how.

    How can I populate a price field based on the value selected from the dropdown list Image 1 Screenshot 50

    2. Use Form Calculation Widget on your Price Field.

    How can I populate a price field based on the value selected from the dropdown list Image 2 Screenshot 61

    and then open the Calculation Wizard on your Price field and add the dropdown field on the formula area.

    How can I populate a price field based on the value selected from the dropdown list Image 3 Screenshot 72

    Feel free to customize it or add formula according to your preference. If you're looking for a conditional logic and update a certain field, you can use the following condition method.

    How can I populate a price field based on the value selected from the dropdown list Image 4 Screenshot 83

    Hope this helps. Cheers!