<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Remove dash from checkbox field in email</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Remove dash from checkbox field in email</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 02:29:34 +0000</pubDate>

<item>
<title>Willy on "Remove dash from checkbox field in email"</title>
<link>https://www.machform.com/forums/topic/remove-dash-from-checkbox-field-in-email#post-10541</link>
<pubDate>Sat, 25 Sep 2010 02:19:18 +0000</pubDate>
<dc:creator>Willy</dc:creator>
<guid isPermaLink="false">10541@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Yunair,&#60;/p&#62;
&#60;p&#62;My helper-functions.php is a clean file without any modifications.&#60;/p&#62;
&#60;p&#62;If I make the modification suggested the dash doesn´t disappear.&#60;/p&#62;
&#60;p&#62;I believe the dash comes from entry-functions.php, from line 370,&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$checkbox_content .= &#38;#39;- &#38;#39;.$option_label.&#38;#39;&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If I remove that dash the dash doesn´t show in the email, without modifying anything else.&#60;/p&#62;
&#60;p&#62;I don´t know if removing that dash will affect anything else except for the email checkbox results.&#60;/p&#62;
&#60;p&#62;What do you think?&#60;/p&#62;
&#60;p&#62;Greetings.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Remove dash from checkbox field in email"</title>
<link>https://www.machform.com/forums/topic/remove-dash-from-checkbox-field-in-email#post-10539</link>
<pubDate>Fri, 24 Sep 2010 19:52:50 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">10539@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Willy,&#60;/p&#62;
&#60;p&#62;Can you send us your modified file please? We'll check it.
&#60;/p&#62;</description>
</item>
<item>
<title>Willy on "Remove dash from checkbox field in email"</title>
<link>https://www.machform.com/forums/topic/remove-dash-from-checkbox-field-in-email#post-10537</link>
<pubDate>Fri, 24 Sep 2010 16:11:14 +0000</pubDate>
<dc:creator>Willy</dc:creator>
<guid isPermaLink="false">10537@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I am interested in achieving the same thing and have been trying to use the code as described and I also tried some additional changes but the dash won't disappear.&#60;/p&#62;
&#60;p&#62;The additional changes I made were in the code that appears on lines 372 - 386 in helper-functions.php,&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($data[&#38;#39;element_type&#38;#39;] == &#38;#39;textarea&#38;#39;){
$email_body .= &#38;quot;&#38;lt;b&#38;gt;{$data[&#38;#39;label&#38;#39;]}&#38;lt;/b&#38;gt; &#38;quot;.nl2br($data[&#38;#39;value&#38;#39;]).&#38;quot;\n&#38;quot;;
}elseif ($data[&#38;#39;element_type&#38;#39;] == &#38;#39;checkbox&#38;#39; &#124;&#124; $data[&#38;#39;element_type&#38;#39;] == &#38;#39;address&#38;#39;){
$email_body .= &#38;quot;&#38;lt;b&#38;gt;{$data[&#38;#39;label&#38;#39;]}&#38;lt;/b&#38;gt; &#38;quot;.$data[&#38;#39;value&#38;#39;].&#38;quot;\n&#38;quot;;
}elseif ($data[&#38;#39;element_type&#38;#39;] == &#38;#39;file&#38;#39;){
if($target_is_admin === false){
$data[&#38;#39;value&#38;#39;] = strip_tags($data[&#38;#39;value&#38;#39;]);
$email_body .= &#38;quot;&#38;lt;b&#38;gt;{$data[&#38;#39;label&#38;#39;]}&#38;lt;/b&#38;gt; - {$data[&#38;#39;value&#38;#39;]} \n&#38;quot;;
}else{
$data[&#38;#39;value&#38;#39;] = strip_tags($data[&#38;#39;value&#38;#39;],&#38;#39;&#38;lt;a&#38;gt;&#38;#39;);
$email_body .= &#38;quot;&#38;lt;b&#38;gt;{$data[&#38;#39;label&#38;#39;]}&#38;lt;/b&#38;gt; &#38;quot;.$data[&#38;#39;value&#38;#39;].&#38;quot;\n&#38;quot;;
}
}else{
$email_body .= &#38;quot;&#38;lt;b&#38;gt;{$data[&#38;#39;label&#38;#39;]}&#38;lt;/b&#38;gt; - {$data[&#38;#39;value&#38;#39;]} \n&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Any suggestions?&#60;/p&#62;
&#60;p&#62;Greetings
&#60;/p&#62;</description>
</item>
<item>
<title>discosteve on "Remove dash from checkbox field in email"</title>
<link>https://www.machform.com/forums/topic/remove-dash-from-checkbox-field-in-email#post-10523</link>
<pubDate>Tue, 21 Sep 2010 23:00:43 +0000</pubDate>
<dc:creator>discosteve</dc:creator>
<guid isPermaLink="false">10523@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks redityo.  The modified code doesn't seem to be working still.  I'll send you an email with my helper-functions.php file now.
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Remove dash from checkbox field in email"</title>
<link>https://www.machform.com/forums/topic/remove-dash-from-checkbox-field-in-email#post-10513</link>
<pubDate>Tue, 21 Sep 2010 10:38:48 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">10513@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;The method in that link should work. Try to change these code for that post&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($data[&#38;#39;element_type&#38;#39;] == &#38;#39;textarea&#38;#39;){
	$template_values[$i] = nl2br($data[&#38;#39;value&#38;#39;]);
} elseif ($data[&#38;#39;element_type&#38;#39;] == &#38;#39;checkbox&#38;#39; &#38;#38;&#38;#38; $form_id == &#38;#39;16&#38;#39; &#38;#38;&#38;#38; $data[&#38;#39;element_id&#38;#39;] == &#38;#39;1&#38;#39; ) {
	$template_values[$i] = str_replace(&#38;#39;-&#38;#39;,&#38;#39; &#38;#39;,$data[&#38;#39;value&#38;#39;]);
}elseif ($data[&#38;#39;element_type&#38;#39;] == &#38;#39;file&#38;#39;){
	if($target_is_admin === false){
		$template_values[$i] = strip_tags($data[&#38;#39;value&#38;#39;]);
	}else{
		$template_values[$i] = strip_tags($data[&#38;#39;value&#38;#39;],&#38;#39;&#38;lt;a&#38;gt;&#38;#39;);
	}
}else{
	$template_values[$i]	= $data[&#38;#39;value&#38;#39;];
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($data[&#38;#39;element_type&#38;#39;] == &#38;#39;textarea&#38;#39;){
	$template_values[$i] = nl2br($data[&#38;#39;value&#38;#39;]);
} elseif ($data[&#38;#39;element_type&#38;#39;] == &#38;#39;checkbox&#38;#39; ) {
	$template_values[$i] = str_replace(&#38;#39;-&#38;#39;,&#38;#39; &#38;#39;,$data[&#38;#39;value&#38;#39;]);
}elseif ($data[&#38;#39;element_type&#38;#39;] == &#38;#39;file&#38;#39;){
	if($target_is_admin === false){
		$template_values[$i] = strip_tags($data[&#38;#39;value&#38;#39;]);
	}else{
		$template_values[$i] = strip_tags($data[&#38;#39;value&#38;#39;],&#38;#39;&#38;lt;a&#38;gt;&#38;#39;);
	}
}else{
	$template_values[$i]	= $data[&#38;#39;value&#38;#39;];
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That would make the customization applied to all check box field type.&#60;br /&#62;
if it still not work, you can send me your &#34;helper-functions.php&#34; file to :&#60;/p&#62;
&#60;p&#62;customer.service[at]appnitro.com&#60;/p&#62;
&#60;p&#62;I will help you to check it
&#60;/p&#62;</description>
</item>
<item>
<title>discosteve on "Remove dash from checkbox field in email"</title>
<link>https://www.machform.com/forums/topic/remove-dash-from-checkbox-field-in-email#post-10509</link>
<pubDate>Mon, 20 Sep 2010 23:57:37 +0000</pubDate>
<dc:creator>discosteve</dc:creator>
<guid isPermaLink="false">10509@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I have a number of checkbox fields on several different forms.  When the form entries are emailed the checkbox fields include a dash (&#34;-&#34;) in front of the selection.  So if the user selected Option 1 in the checkbox field, it comes through on the email as &#34;- Option 1&#34;.&#60;/p&#62;
&#60;p&#62;Is there a way to remove this dash on the email?  I tried the solution presented here - &#60;a href=&#34;http://www.appnitro.com/forums/topic/-in-subject-line?replies=7,&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/-in-subject-line?replies=7,&#60;/a&#62; but that doesn't seem to do anything.  I'd like to not have to specify every field and element that I want to remove the dash for because it's a really long list.&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
