Modifier :price
:price does different things on different tags and fields:
- Choice price (unformatted) on Drop down, Radio buttons, Checkboxes, “Checkboxes, one choice”, Image choice, and Multiple choice fields, under What to show in the picker.
Example:{Shirt Size:108:price}gives1015.5. On the test form, this field is{Shirt Size:108}(Drop down). - Total as a plain number on Total fields, under What to show in the picker.
Example:{Grand Total:127:price}gives1234567.89. On the test form, this field is{Grand Total:127}(Total).
Choice price (unformatted)
Empty when the choices have no prices.
| Product | Gravity Forms |
|---|---|
| Requires | Gravity Forms 1.9 or later |
| In the picker | What to show, for Drop down, Radio buttons, Checkboxes, “Checkboxes, one choice”, Image choice, and Multiple choice fields |
Examples
Output from the real plugin code, run on a test entry.
| Merge tag | Output | Without the modifier |
|---|---|---|
{Toppings:6:price} | 2.5, 1 | Pepperoni, Mushroom |
Works on
Form fields: Drop down · Radio buttons · Checkboxes · Checkboxes, one choice · Image choice · Multiple choice.
Total as a plain number
| Product | Gravity Forms |
|---|---|
| Requires | Gravity Forms 2.4 or later |
| In the picker | What to show, for Total fields |
Works on
Form fields: Total.