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-strip-tags.php
1 parent cb3020d commit 11a9d84Copy full SHA for 11a9d84
gp-populate-anything/gppa-strip-tags.php
@@ -0,0 +1,14 @@
1
+<?php
2
+/**
3
+ * Gravity Perks // Populate Anything // Strip Tags from Populated Value
4
+ * https://gravitywiz.com/documentation/gravity-forms-populate-anything/
5
+ */
6
+add_filter( 'gppa_process_template_value', function( $template_value, $field ) {
7
+
8
+ // Update "123" to your form ID and "4" to your field ID.
9
+ if ( $field->formId == 123 and $field->id == 4 ) {
10
+ $template_value = strip_tags( $template_value );
11
+ }
12
13
+ return $template_value;
14
+}, 10, 7 );
0 commit comments