<?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: Limit drop down options once they have been selected on a form submission</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Limit drop down options once they have been selected on a form submission</description>
<language>en</language>
<pubDate>Tue, 05 May 2026 07:53:21 +0000</pubDate>

<item>
<title>akerr on "Limit drop down options once they have been selected on a form submission"</title>
<link>https://www.machform.com/forums/topic/limit-drop-down-options-once-they-have-been-selected-on-a-form-submission#post-18712</link>
<pubDate>Mon, 15 Jul 2013 23:45:45 +0000</pubDate>
<dc:creator>akerr</dc:creator>
<guid isPermaLink="false">18712@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks for the followup.&#60;/p&#62;
&#60;p&#62;As a feature request, 123 Contact Form has a neat little tool here: &#60;a href=&#34;http://www.123contactform.com/docs/how-to-limit-the-number-of-times-an-option-is-selected/&#34; rel=&#34;nofollow&#34;&#62;http://www.123contactform.com/docs/how-to-limit-the-number-of-times-an-option-is-selected/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Which allows you to select a number of times a field can be selected, thanks for the great product!
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Limit drop down options once they have been selected on a form submission"</title>
<link>https://www.machform.com/forums/topic/limit-drop-down-options-once-they-have-been-selected-on-a-form-submission#post-18684</link>
<pubDate>Sun, 07 Jul 2013 22:56:47 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">18684@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;You can not disable the option or disable it, but you can create custom validation to the selected drop down option.&#60;br /&#62;
So if someone select the option which already submitted, the form would show an error.&#60;/p&#62;
&#60;p&#62;To do this, you need to customize &#34;includes/post-functions.php&#34; file, I assume your form id is &#34;25481&#34; and the drop down element id is &#34;1&#34;.&#60;br /&#62;
Then go to around line 1657, you will see these code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$process_result[&#38;#39;form_redirect&#38;#39;]  = $form_redirect;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then put these code above that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($form_id == 25481) {
	if (!empty($table_data[&#38;#39;element_1&#38;#39;])) {
		$query = &#38;quot;select count(id) total_entry from &#38;quot; . MF_TABLE_PREFIX . &#38;quot;form_{$form_id} where element_1=? and status=1&#38;quot;;
		$params = array($table_data[&#38;#39;element_1&#38;#39;]);

		$sth = mf_do_query($query,$params,$dbh);
		$row = mf_do_fetch_result($sth);
		if(!empty($row[&#38;#39;total_entry&#38;#39;])){
			$error_elements[&#38;#39;1&#38;#39;] = &#38;#39;Sorry, but this option already selected.&#38;#39;;
		}
	}

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;you need to change the id's number with yours.
&#60;/p&#62;</description>
</item>
<item>
<title>akerr on "Limit drop down options once they have been selected on a form submission"</title>
<link>https://www.machform.com/forums/topic/limit-drop-down-options-once-they-have-been-selected-on-a-form-submission#post-18655</link>
<pubDate>Thu, 04 Jul 2013 03:52:37 +0000</pubDate>
<dc:creator>akerr</dc:creator>
<guid isPermaLink="false">18655@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I see you can limit the number of form submissions as a whole, but I'm wondering if there's a way to disable an option in a drop-down list once a user has made a submission for that particular time, so for instance:&#60;/p&#62;
&#60;p&#62;Select list options&#60;br /&#62;
8am&#60;br /&#62;
9am&#60;br /&#62;
10am&#60;br /&#62;
11am&#60;/p&#62;
&#60;p&#62;So once 8am and 9am has been submitted those options would no longer show-up on the form.&#60;/p&#62;
&#60;p&#62;Thanks for your time.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
