Created
January 16, 2019 17:15
-
-
Save mindpalette/3309cfeab4a255c9cd9c4a87a268bb13 to your computer and use it in GitHub Desktop.
Gravity Forms Pricing Options - Change Relative/Dynamic Price to Static Option Price
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// add as HTML field type in Gravity Forms | |
// source: https://docs.gravityforms.com/gform_format_option_label/#usage | |
function gform_format_option_label(fullLabel, fieldLabel, priceLabel, selectedPrice, price, formId, fieldId) { | |
priceLabel = " <span class='ginput_price'>" + gformFormatMoney(price) + '</span>'; | |
return fieldLabel + priceLabel; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment