Skip to content

Commit cc35caa

Browse files
authored
gppa-lmt-remove-commas.php: Added new snippet.
1 parent 7b4a0eb commit cc35caa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
/**
3+
* Gravity Perks // Populate Anything // Remove Commas From Live Merge Tag
4+
* https://gravitywiz.com/documentation/gravity-forms-populate-anything/
5+
*
6+
* Remove commas from the value copied with a Live Merge Tag
7+
* This is useful when copying values over 1,000 from a Number field to a Quantity field.
8+
*/
9+
// Update "123" to your form ID; and "4" to the field ID you are copying from.
10+
add_filter( 'gppa_live_merge_tag_value_123_4', function( $value ) {
11+
return str_replace( ',', '', $value );
12+
} );

0 commit comments

Comments
 (0)