Modifier :avg
Average.
About
| Product | GravityMath |
|---|---|
| Requires | GravityMath 1.0 or later |
| In the picker | What to show, for Number, Product, Total, Calculation, Shipping, and Quantity fields |
| Combining | Use it alone. With other modifiers, it is ignored. |
Examples
Output from the real plugin code, run on a test entry.
| Merge tag | Output | Without the modifier |
|---|---|---|
{Amount:8:avg} | 1,000 | $1,234.56 |
Works on
The merge tag picker does not offer it anywhere.
Left out
| Field kinds | Why |
|---|---|
| Number · Product · Quantity · Shipping · Total | Works only inside a shortcode. GravityMath adds this up across entries, which it does only between the tags of its [gvmath] shortcode. |
| Calculation | Outputs nothing on the whole field. Gravity Forms has no single value for this field as a whole, so the tag outputs nothing and so does any modifier. Use one part instead, like .3 for a first name. |