<?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: Show how many spots are left (Limit Form Submission)</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Show how many spots are left (Limit Form Submission)</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 21:00:49 +0000</pubDate>

<item>
<title>redityo on "Show how many spots are left (Limit Form Submission)"</title>
<link>https://www.machform.com/forums/topic/show-how-many-spots-are-left-limit-form-submission#post-23197</link>
<pubDate>Mon, 04 May 2015 13:35:02 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">23197@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I'm afraid currently there is no function to show remaining entries on the form.&#60;br /&#62;
But if you don't mind with the customization, you can create custom code to show remaining entries in the top of your forms.&#60;/p&#62;
&#60;p&#62;To do this, edit includes/view-functions.php file and go to around line 5324, you will see these codes :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//if advanced form code being used, display the form without body container
if($integration_method == &#38;#39;php&#38;#39;){&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then put these custom code above that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//custom code
		if ( !empty($form-&#38;gt;limit_enable) &#38;#38;&#38;#38; $form-&#38;gt;limit_enable == 1){
			$query = &#38;quot;select count(1) total_entries from &#38;quot;.MF_TABLE_PREFIX.&#38;quot;form_{$form_id} where &#38;lt;code&#38;gt;status&#38;lt;/code&#38;gt; = 1&#38;quot;;
			$params = array();

			$sth = mf_do_query($query,$params,$dbh);
			$row = mf_do_fetch_result($sth);
			$remain_count = $form-&#38;gt;limit - $row[&#38;#39;total_entries&#38;#39;];
			$remain_entries_message = &#38;lt;&#38;lt;&#38;lt;EOT
				&#38;lt;li class=&#38;quot;remain_entries&#38;quot;&#38;gt;
					Remain {$remain_count} entries of {$form-&#38;gt;limit }
				&#38;lt;/li&#38;gt;
EOT;
		}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then go to line 5380 and 5428, you will see these code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;{$payment_total_markup_top}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and change the code to be like this &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;{$payment_total_markup_top}
{$remain_entries_message}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>quadrant2 on "Show how many spots are left (Limit Form Submission)"</title>
<link>https://www.machform.com/forums/topic/show-how-many-spots-are-left-limit-form-submission#post-23185</link>
<pubDate>Fri, 01 May 2015 03:05:38 +0000</pubDate>
<dc:creator>quadrant2</dc:creator>
<guid isPermaLink="false">23185@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;That would be an awesome feature!!
&#60;/p&#62;</description>
</item>
<item>
<title>presbyran on "Show how many spots are left (Limit Form Submission)"</title>
<link>https://www.machform.com/forums/topic/show-how-many-spots-are-left-limit-form-submission#post-22732</link>
<pubDate>Tue, 17 Feb 2015 15:09:46 +0000</pubDate>
<dc:creator>presbyran</dc:creator>
<guid isPermaLink="false">22732@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Nobody?
&#60;/p&#62;</description>
</item>
<item>
<title>presbyran on "Show how many spots are left (Limit Form Submission)"</title>
<link>https://www.machform.com/forums/topic/show-how-many-spots-are-left-limit-form-submission#post-22713</link>
<pubDate>Fri, 13 Feb 2015 15:53:50 +0000</pubDate>
<dc:creator>presbyran</dc:creator>
<guid isPermaLink="false">22713@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;Just wanna know if there is any way how to show how many entries are left for the form.&#60;/p&#62;
&#60;p&#62;Example:&#60;br /&#62;
I create a form and allow max 5 entries to be saved before the form gets disabled.&#60;br /&#62;
I wanna show on the form that there is 3 enries left of 5 for the users, so they know how many spots are left.&#60;/p&#62;
&#60;p&#62;Is this possible?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>

</channel>
</rss>
