<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Stripping pipe delimiter from Product Field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/stripping-pipe-delimiter-from-product-field</link>
		<description>Gravity Support Forums Topic: Stripping pipe delimiter from Product Field</description>
		<language>en-US</language>
		<pubDate>Sun, 12 Apr 2026 23:36:43 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/stripping-pipe-delimiter-from-product-field" rel="self" type="application/rss+xml" />

		<item>
			<title>silk on "Stripping pipe delimiter from Product Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/stripping-pipe-delimiter-from-product-field#post-44916</link>
			<pubDate>Sat, 24 Dec 2011 04:02:18 +0000</pubDate>
			<dc:creator>silk</dc:creator>
			<guid isPermaLink="false">44916@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok, I see. Thanks Carl.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Stripping pipe delimiter from Product Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/stripping-pipe-delimiter-from-product-field#post-44441</link>
			<pubDate>Mon, 19 Dec 2011 19:29:40 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">44441@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You are going about this wrong.  You don't want to update the value of the entry.  You only want to pass the manipulated value to the 3rd party API.&#60;/p&#62;
&#60;p&#62;So whatever code you are using to pass the value of that field to the 3rd party API, that is where you want to do the string replace.&#60;/p&#62;
&#60;p&#62;The code you have above is trying to do a string replace on the entire entry object, which isn't going to work.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>silk on "Stripping pipe delimiter from Product Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/stripping-pipe-delimiter-from-product-field#post-44434</link>
			<pubDate>Mon, 19 Dec 2011 18:55:40 +0000</pubDate>
			<dc:creator>silk</dc:creator>
			<guid isPermaLink="false">44434@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, that's what I want to do.&#60;/p&#62;
&#60;p&#62;So could you please suggest the code I should use to replace the pipe with a tilde?&#60;/p&#62;
&#60;p&#62;I tried&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_after_submission_6&#38;quot;, &#38;quot;after_submission&#38;quot;, 10, 2);
2	$entry = str_replace(&#38;quot;&#124;&#38;quot;, &#38;quot;~&#38;quot;, $entry);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That did nothing. What do you suggest?&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Stripping pipe delimiter from Product Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/stripping-pipe-delimiter-from-product-field#post-44430</link>
			<pubDate>Mon, 19 Dec 2011 18:43:56 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">44430@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What you would have to do is when using gform_after_submission and getting that value, you'd then have to parse that field and just get the piece of the data you want and then pass just that to the 3rd party API.  &#60;/p&#62;
&#60;p&#62;So you'd have to parse the value and just get the portion of the data you need from that field value.  You wouldn't actually change what is stored in the entry.  You would manipulate the data before passing it to the API.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>silk on "Stripping pipe delimiter from Product Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/stripping-pipe-delimiter-from-product-field#post-44428</link>
			<pubDate>Mon, 19 Dec 2011 18:38:21 +0000</pubDate>
			<dc:creator>silk</dc:creator>
			<guid isPermaLink="false">44428@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I understand the pricing field needs the delimiter to function. I want to remove it after it has done its work, when I am sending the field to other progs via their API.&#60;/p&#62;
&#60;p&#62;I thought gform_after_submission did this?&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Stripping pipe delimiter from Product Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/stripping-pipe-delimiter-from-product-field#post-44390</link>
			<pubDate>Mon, 19 Dec 2011 16:28:42 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">44390@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There is currently no way to strip or replace the delimiter in the Product Field.  It functions like this by design.  Form fields only have one value, but a Pricing Field is unique and necessitates multiple values (the name and the price) which requires the information to be stored this way.  &#60;/p&#62;
&#60;p&#62;Without the pipe there would be no way to store 1) What was selected and 2) The price of what was selected.  So it's critical that this is not changed for Pricing Fields to function properly.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>silk on "Stripping pipe delimiter from Product Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/stripping-pipe-delimiter-from-product-field#post-44361</link>
			<pubDate>Mon, 19 Dec 2011 10:47:08 +0000</pubDate>
			<dc:creator>silk</dc:creator>
			<guid isPermaLink="false">44361@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The Product field includes two values separated by a pipe delimiter. Is it possible to remove or replace this delimiter using gform_after_submission?&#60;/p&#62;
&#60;p&#62;My form (ID 6) contains ten product fields. I tried adding this code to my custom functions.php but it doesn't work:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_after_submission_6&#38;quot;, &#38;quot;after_submission&#38;quot;, 10, 2);
$entry = str_replace(&#38;quot;&#124;&#38;quot;, &#38;quot;~&#38;quot;, $entry);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Could someone please suggest the code I should use - I'm a beginner. Thanks, it's a great product!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
