1 Reply Latest reply on Aug 23, 2010 1:09 PM by George_Johnson

    Need help with Javascript - If/Then Statement

    Mioman

      I'm trying to include a custom javascript statement to calculate a field and need some help.  Any help is greatly appreciated.

       

      I've created a drop-down list form field for quantities (i.e., 50, 100, 1000).  I want the customer to choose a quantity and then I want another form field to populate a corresponding price based on the quantity selected. 

       

      So if the customer selects 50, I want the price field to say $85.00

      If the customer selects 100, I want the price field to say $125.00

      If the customer selects 1000, I want the price field to say $750.00

       

      Anyone know how I would go about doing this?