Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions gp-populate-anything/gppa-lmt-remove-commas.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
/**
* Gravity Perks // Populate Anything // Remove Commas From Live Merge Tag
* https://gravitywiz.com/documentation/gravity-forms-populate-anything/
*
* Remove commas from the value copied with a Live Merge Tag
* This is useful when copying values over 1,000 from a Number field to a Quantity field.
*/
// Update "123" to your form ID; and "4" to the field ID you are copying from.
add_filter( 'gppa_live_merge_tag_value_123_4', function( $value ) {
return str_replace( ',', '', $value );
} );
Loading