<?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: Sending only entrys with value.</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Sending only entrys with value.</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 01:29:28 +0000</pubDate>

<item>
<title>jaimar on "Sending only entrys with value."</title>
<link>https://www.machform.com/forums/topic/sending-only-entrys-with-value#post-6158</link>
<pubDate>Tue, 09 Jun 2009 22:01:21 +0000</pubDate>
<dc:creator>jaimar</dc:creator>
<guid isPermaLink="false">6158@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;AWESOME! Thanks Mr. Redityo! your the best... &#60;/p&#62;
&#60;p&#62;UP! :)
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Sending only entrys with value."</title>
<link>https://www.machform.com/forums/topic/sending-only-entrys-with-value#post-6151</link>
<pubDate>Mon, 08 Jun 2009 20:38:00 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">6151@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Ah ... my above code is to hide the entries when you view the entry. Anyway to hide the field in edit entries page, you should edit &#34;view-functions.php&#34;. Let say your have these information in your form :&#60;/p&#62;
&#60;p&#62;1. Form id : 79&#60;br /&#62;
2. Drop Down Field ID : 2&#60;br /&#62;
3. &#34;Choose One&#34; option located in position 2&#60;/p&#62;
&#60;p&#62;Then try to follow these steps :&#60;/p&#62;
&#60;p&#62;1. Go to around line 653 ~ 662, you will see these code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$element_markup = &#38;lt;&#38;lt;&#38;lt;EOT
		&#38;lt;li  id=&#38;quot;li_{$element-&#38;gt;id}&#38;quot; {$error_class}&#38;gt;
		&#38;lt;label class=&#38;quot;description&#38;quot; for=&#38;quot;element_{$element-&#38;gt;id}&#38;quot;&#38;gt;{$element-&#38;gt;title} {$span_required}&#38;lt;/label&#38;gt;
		&#38;lt;div&#38;gt;
		&#38;lt;select class=&#38;quot;element select {$element-&#38;gt;size}&#38;quot; id=&#38;quot;element_{$element-&#38;gt;id}&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}&#38;quot;&#38;gt;
			{$option_markup}
		&#38;lt;/select&#38;gt;
		&#38;lt;/div&#38;gt;{$guidelines} {$error_message}
		&#38;lt;/li&#38;gt;
EOT;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;replace it with &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($element-&#38;gt;is_hide)
{
$hide_element = &#38;quot;style=display:none !important&#38;quot;;
}

$element_markup = &#38;lt;&#38;lt;&#38;lt;EOT
		&#38;lt;li {$hide_element} id=&#38;quot;li_{$element-&#38;gt;id}&#38;quot; {$error_class}&#38;gt;
		&#38;lt;label class=&#38;quot;description&#38;quot; for=&#38;quot;element_{$element-&#38;gt;id}&#38;quot;&#38;gt;{$element-&#38;gt;title} {$span_required}&#38;lt;/label&#38;gt;
		&#38;lt;div&#38;gt;
		&#38;lt;select class=&#38;quot;element select {$element-&#38;gt;size}&#38;quot; id=&#38;quot;element_{$element-&#38;gt;id}&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}&#38;quot;&#38;gt;
			{$option_markup}
		&#38;lt;/select&#38;gt;
		&#38;lt;/div&#38;gt;{$guidelines} {$error_message}
		&#38;lt;/li&#38;gt;
EOT;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;2. Go to line 2062 ~ 2064, you will see this :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($element_data-&#38;gt;is_private &#38;#38;&#38;#38; empty($_SESSION[&#38;#39;logged_in&#38;#39;])){ //don&#38;#39;t show private element
	continue;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;add the code bellow that line, the code should be like this &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($element_data-&#38;gt;is_private &#38;#38;&#38;#38; empty($_SESSION[&#38;#39;logged_in&#38;#39;])){ //don&#38;#39;t show private element
	continue;
}

//don&#38;#39;t forget to adjust these information
if ($element_data-&#38;gt;id == 2  &#38;#38;&#38;#38;
	$form_id == 79 &#38;#38;&#38;#38;
	!empty($edit_id) &#38;#38;&#38;#38;
	$edit_id != 0 &#38;#38;&#38;#38;
	$element_data-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element_data-&#38;gt;id][&#38;#39;default_value&#38;#39;] == 2) {
	$element_data-&#38;gt;is_hide = true;
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>jaimar on "Sending only entrys with value."</title>
<link>https://www.machform.com/forums/topic/sending-only-entrys-with-value#post-6148</link>
<pubDate>Mon, 08 Jun 2009 19:13:38 +0000</pubDate>
<dc:creator>jaimar</dc:creator>
<guid isPermaLink="false">6148@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks for the reply Sir. But the code you have posted was already answered here&#60;br /&#62;
&#60;strong&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.appnitro.com/forums/topic/hiding-emptydefault-value-in-review-page?replies=4&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/hiding-emptydefault-value-in-review-page?replies=4&#60;/a&#62;&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;for hiding the view_entry.php..&#60;/p&#62;
&#60;p&#62;im so sorry but what im trying to asked for help is the EDIT_ENTRY Section.. where you can view and edit the sent form.. Please reply Sir Redityo... Godbless!
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Sending only entrys with value."</title>
<link>https://www.machform.com/forums/topic/sending-only-entrys-with-value#post-6147</link>
<pubDate>Mon, 08 Jun 2009 17:13:52 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">6147@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Sorry for the delay :) .. anyway to hide the value in view entry, you need to edit &#34;view_entry.php&#34; file. Go to around line 132, then you will see this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;foreach ($entry_details as $data){&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;put these code exactly bellow that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($data[&#38;#39;element_type&#38;#39;] == &#38;quot;select&#38;quot; &#38;#38;&#38;#38; $form_id == &#38;#39;49&#38;#39; &#38;#38;&#38;#38; $data[&#38;#39;value&#38;#39;] == &#38;#39;Choose One&#38;#39;) {
	continue ;
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>johntorre on "Sending only entrys with value."</title>
<link>https://www.machform.com/forums/topic/sending-only-entrys-with-value#post-6141</link>
<pubDate>Mon, 08 Jun 2009 11:42:29 +0000</pubDate>
<dc:creator>johntorre</dc:creator>
<guid isPermaLink="false">6141@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Same problem here.. UP!
&#60;/p&#62;</description>
</item>
<item>
<title>jaimar on "Sending only entrys with value."</title>
<link>https://www.machform.com/forums/topic/sending-only-entrys-with-value#post-6135</link>
<pubDate>Sun, 07 Jun 2009 22:18:19 +0000</pubDate>
<dc:creator>jaimar</dc:creator>
<guid isPermaLink="false">6135@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;UP! Please reply..
&#60;/p&#62;</description>
</item>
<item>
<title>jaimar on "Sending only entrys with value."</title>
<link>https://www.machform.com/forums/topic/sending-only-entrys-with-value#post-6130</link>
<pubDate>Sat, 06 Jun 2009 21:32:34 +0000</pubDate>
<dc:creator>jaimar</dc:creator>
<guid isPermaLink="false">6130@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Your the best Mr.Redityo obcourse Sir Yuniar as well...&#60;br /&#62;
Your guide is perfectly working.. Thanks again.. by the way Master Redityo&#60;br /&#62;
can you guide me one more time. i think its in the helper-function.php...&#60;br /&#62;
I just want also to hide all the &#60;strong&#62;DROP DOWN&#60;/strong&#62; with 'Choose One' value, when viewing&#60;br /&#62;
&#60;strong&#62;EDIT ENTRY SECTION&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;More power Machform,&#60;/p&#62;
&#60;p&#62;Jaimar
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Sending only entrys with value."</title>
<link>https://www.machform.com/forums/topic/sending-only-entrys-with-value#post-6121</link>
<pubDate>Sat, 06 Jun 2009 09:46:02 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">6121@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;By default machform won't sending a field with no value. I think what your need is, not sending a drop down with value &#34;Choose One&#34; . If I'm right, you can edit &#34;includes/helper-functions.php&#34; file and add same condition in there. Let say you've those drop down value in form 49, then go around line 331 ~ 333 you will see these code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if((empty($data[&#38;#39;value&#38;#39;]) &#124;&#124; $data[&#38;#39;value&#38;#39;] == &#38;#39;&#38;amp;nbsp;&#38;#39;) &#38;#38;&#38;#38; $data[&#38;#39;value&#38;#39;] !== 0 &#38;#38;&#38;#38; $data[&#38;#39;value&#38;#39;] !== &#38;#39;0&#38;#39;){
	continue;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;you can put these code bellow that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($data[&#38;#39;element_type&#38;#39;] == &#38;quot;select&#38;quot; &#38;#38;&#38;#38; $form_id == &#38;#39;49&#38;#39; &#38;#38;&#38;#38; $data[&#38;#39;value&#38;#39;] == &#38;#39;Choose One&#38;#39;) {
	continue ;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and if you're using &#34;simple text&#34; mail, go to around line 373 ~ 375 you will see the same code like this :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if((empty($data[&#38;#39;value&#38;#39;]) &#124;&#124; $data[&#38;#39;value&#38;#39;] == &#38;#39;&#38;amp;nbsp;&#38;#39;) &#38;#38;&#38;#38; $data[&#38;#39;value&#38;#39;] !== 0 &#38;#38;&#38;#38; $data[&#38;#39;value&#38;#39;] !== &#38;#39;0&#38;#39;){
	continue;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and put the same validation code bellow that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($data[&#38;#39;element_type&#38;#39;] == &#38;quot;select&#38;quot; &#38;#38;&#38;#38; $form_id == &#38;#39;49&#38;#39; &#38;#38;&#38;#38; $data[&#38;#39;value&#38;#39;] == &#38;#39;Choose One&#38;#39;) {
	continue ;
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>jaimar on "Sending only entrys with value."</title>
<link>https://www.machform.com/forums/topic/sending-only-entrys-with-value#post-6118</link>
<pubDate>Sat, 06 Jun 2009 08:57:16 +0000</pubDate>
<dc:creator>jaimar</dc:creator>
<guid isPermaLink="false">6118@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Yunar and Redityo,&#60;/p&#62;
&#60;p&#62;I just want to ask if how to send only those field with value. and not show those field without value to my email when it sent..&#60;/p&#62;
&#60;p&#62;for example i have two dropdown (1 and 2)  with default value=&#34;Choose One&#34;&#60;/p&#62;
&#60;p&#62;and if the client selected only in dropdown one(1), the dropdown two(2) are not included to email notification..&#60;/p&#62;
&#60;p&#62;Thank you
&#60;/p&#62;</description>
</item>

</channel>
</rss>
