<?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: hiding empty/default value  in review page?</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: hiding empty/default value  in review page?</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 04:01:43 +0000</pubDate>

<item>
<title>redityo on "hiding empty/default value  in review page?"</title>
<link>https://www.machform.com/forums/topic/hiding-emptydefault-value-in-review-page#post-6105</link>
<pubDate>Thu, 04 Jun 2009 22:20:29 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">6105@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hmmm.. it's work fine with me when I test with a &#34;text box&#34; field. However I think the code need to be updated, first try to update the code from :&#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;#39;)) {
		continue;
	}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to&#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;that code should handle options element like drop down to be hide or check box field in review page. Then edit your &#34;view-functions.php&#34; file again and go to around line 2438  ~ 2453, you will see these code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;foreach ($entry_details as $data){ 

	if($toggle){
		$toggle = false;
		$row_style = &#38;#39;class=&#38;quot;alt&#38;quot;&#38;#39;;
	}else{
		$toggle = true;
		$row_style = &#38;#39;&#38;#39;;
	}	

	$entry_data .= &#38;quot;&#38;lt;tr {$row_style}&#38;gt;\n&#38;quot;;
	$entry_data .= &#38;quot;&#38;lt;td width=\&#38;quot;40%\&#38;quot;&#38;gt;&#38;lt;strong&#38;gt;{$data[&#38;#39;label&#38;#39;]}&#38;lt;/strong&#38;gt;&#38;lt;/td&#38;gt;\n&#38;quot;;
	$entry_data .= &#38;quot;&#38;lt;td width=\&#38;quot;60%\&#38;quot;&#38;gt;&#38;quot;.nl2br($data[&#38;#39;value&#38;#39;]).&#38;quot;&#38;lt;/td&#38;gt;\n&#38;quot;;
	$entry_data .= &#38;quot;&#38;lt;/tr&#38;gt;\n&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;replace with this one &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;foreach ($entry_details as $data){
	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;
	}
	if($toggle){
		$toggle = false;
		$row_style = &#38;#39;class=&#38;quot;alt&#38;quot;&#38;#39;;
	}else{
		$toggle = true;
		$row_style = &#38;#39;&#38;#39;;
	}	

	$entry_data .= &#38;quot;&#38;lt;tr {$row_style}&#38;gt;\n&#38;quot;;
	$entry_data .= &#38;quot;&#38;lt;td width=\&#38;quot;40%\&#38;quot;&#38;gt;&#38;lt;strong&#38;gt;{$data[&#38;#39;label&#38;#39;]}&#38;lt;/strong&#38;gt;&#38;lt;/td&#38;gt;\n&#38;quot;;
	$entry_data .= &#38;quot;&#38;lt;td width=\&#38;quot;60%\&#38;quot;&#38;gt;&#38;quot;.nl2br($data[&#38;#39;value&#38;#39;]).&#38;quot;&#38;lt;/td&#38;gt;\n&#38;quot;;
	$entry_data .= &#38;quot;&#38;lt;/tr&#38;gt;\n&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Those code will handle review page when using advance embed code
&#60;/p&#62;</description>
</item>
<item>
<title>johntorre on "hiding empty/default value  in review page?"</title>
<link>https://www.machform.com/forums/topic/hiding-emptydefault-value-in-review-page#post-6089</link>
<pubDate>Thu, 04 Jun 2009 12:55:11 +0000</pubDate>
<dc:creator>johntorre</dc:creator>
<guid isPermaLink="false">6089@https://www.machform.com/forums/</guid>
<description>&#60;pre&#62;&#60;code&#62;if (empty($data['value']) &#124;&#124; ($data['value'] == &#60;strong&#62;''&#60;/strong&#62;)) {
&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Hi Sir Redityo thanks for this.. But when testing. it does not hide the &#38;lt;tr&#38;gt; or the field without value. but when i put some value at this line&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;($data['value'] == 'some value here'))&#60;/code&#62;&#60;/pre&#62;
 and when typing&#60;br /&#62;
some value here in the input field and try to continue to review page input field hide itself..
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "hiding empty/default value  in review page?"</title>
<link>https://www.machform.com/forums/topic/hiding-emptydefault-value-in-review-page#post-6088</link>
<pubDate>Thu, 04 Jun 2009 11:23:03 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">6088@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;To hide a field with no value, try to edit your &#34;view-functions.php&#34; and go around line 2334 ~ 2350, you will see these code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;foreach ($entry_details as $data){
	if($toggle){
		$toggle = false;
		$row_style = &#38;#39;class=&#38;quot;alt&#38;quot;&#38;#39;;
	}else{
		$toggle = true;
		$row_style = &#38;#39;&#38;#39;;
	}	

	$entry_data .= &#38;quot;&#38;lt;tr {$row_style}&#38;gt;\n&#38;quot;;
	$entry_data .= &#38;quot;&#38;lt;td width=\&#38;quot;40%\&#38;quot;&#38;gt;&#38;lt;strong&#38;gt;{$data[&#38;#39;label&#38;#39;]}&#38;lt;/strong&#38;gt;&#38;lt;/td&#38;gt;\n&#38;quot;;
	$entry_data .= &#38;quot;&#38;lt;td width=\&#38;quot;60%\&#38;quot;&#38;gt;&#38;quot;.nl2br($data[&#38;#39;value&#38;#39;]).&#38;quot;&#38;lt;/td&#38;gt;\n&#38;quot;;
	$entry_data .= &#38;quot;&#38;lt;/tr&#38;gt;\n&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;try to replace with this one &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;foreach ($entry_details as $data){
	if (empty($data[&#38;#39;value&#38;#39;]) &#124;&#124; ($data[&#38;#39;value&#38;#39;] == &#38;#39;&#38;#39;)) {
		continue;
	}
	if($toggle){
		$toggle = false;
		$row_style = &#38;#39;class=&#38;quot;alt&#38;quot;&#38;#39;;
	}else{
		$toggle = true;
		$row_style = &#38;#39;&#38;#39;;
	}	

	$entry_data .= &#38;quot;&#38;lt;tr {$row_style}&#38;gt;\n&#38;quot;;
	$entry_data .= &#38;quot;&#38;lt;td width=\&#38;quot;40%\&#38;quot;&#38;gt;&#38;lt;strong&#38;gt;{$data[&#38;#39;label&#38;#39;]}&#38;lt;/strong&#38;gt;&#38;lt;/td&#38;gt;\n&#38;quot;;
	$entry_data .= &#38;quot;&#38;lt;td width=\&#38;quot;60%\&#38;quot;&#38;gt;&#38;quot;.nl2br($data[&#38;#39;value&#38;#39;]).&#38;quot;&#38;lt;/td&#38;gt;\n&#38;quot;;
	$entry_data .= &#38;quot;&#38;lt;/tr&#38;gt;\n&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>johntorre on "hiding empty/default value  in review page?"</title>
<link>https://www.machform.com/forums/topic/hiding-emptydefault-value-in-review-page#post-6086</link>
<pubDate>Thu, 04 Jun 2009 10:38:33 +0000</pubDate>
<dc:creator>johntorre</dc:creator>
<guid isPermaLink="false">6086@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Sir Redityo,&#60;/p&#62;
&#60;p&#62;Is it possible to hide the form field with no value or with default selected value in the REVIEW PAGE SECTION??? already found the script section in view-function.php but dont know how to execute..&#60;/p&#62;
&#60;p&#62;THanks
&#60;/p&#62;</description>
</item>

</channel>
</rss>
