Simple drop-down menu with PayPal support

This calculator demonstrates how you can use the [variable] tag to match text selections to numbers, and create a PayPal button based on the calculated values.



    Source code for this form:

    <label>Product
    [select product "Caffe Latte" "Caffe Mocha" "White Chocolate Mocha" "Freshly Brewed Coffee" "Cinnamon Dolce Latte" "Skinny Vanilla Latte" "Caramel Macchiato" "Caramel Flan Latte" "Flat White" "Skinny Peppermint Mocha" "Pumpkin Spice Latte" "Salted Caramel Mocha" "Toasted Graham Latte" "Toasted Graham Latte" "Iced Coffee (with or without Milk)" "Caramel Frappuccino" "Mocha Frappuccino" "Strawberries & Creme Frappuccino" "Coffee Frappuccino" "Vanilla Bean Crème Frappuccino" "Iced Caramel Macchiato" "Salted Caramel Mocha Frappuccino"]</label>
    
    <label>Quantity
    [number* qty "1"]</label>
    
    <!-- Hidden field that matches product to price -->
    [variable price cf7-hide "product:" "Caffe Latte 2.95" "Caffe Mocha 3.45" "White Chocolate Mocha 3.75" "Freshly Brewed Coffee 1.85" "Cinnamon Dolce Latte 3.65" "Skinny Vanilla Latte 3.45" "Caramel Macchiato 3.75" "Caramel Flan Latte 3.75" "Flat White 3.75" "Skinny Peppermint Mocha 3.95" "Pumpkin Spice Latte 4.25" "Salted Caramel Mocha 4.25" "Toasted Graham Latte 4.25" "Toasted Graham Latte 4.95" "Iced Coffee (with or without Milk) 2.25" "Caramel Frappuccino 3.95" "Mocha Frappuccino 3.95" "Strawberries & Creme Frappuccino 3.95" "Coffee Frappuccino 3.25" "Vanilla Bean Crème Frappuccino 3.25" "Iced Caramel Macchiato 3.75" "Salted Caramel Mocha Frappuccino 4.25"]
    
    [calculate_button "Calculate"]
    
    <label>Price:
    [calculation result precision:2 "price * qty"]</label>
    [paypal paypal_button email:my_paypal_email@example.com field:result currency:USD]