We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gppa-lmt-extract-first-character.php
1 parent 4e263be commit f10e160Copy full SHA for f10e160
gp-populate-anything/gppa-lmt-extract-first-character.php
@@ -0,0 +1,12 @@
1
+<?php
2
+/**
3
+ * Gravity Perks // Populate Anything // Extract First Character From Live Merge Tag
4
+ * https://gravitywiz.com/documentation/gravity-forms-populate-anything/
5
+ *
6
+ * Extract the first character of a string using when a Live Merge Tag.
7
+ * This is useful when you need the first letter of a name, for example.
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 substr( $value, 0, 1 );
12
+} );
0 commit comments