<?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: Editing error message in submission of required fields</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Editing error message in submission of required fields</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 21:03:05 +0000</pubDate>

<item>
<title>yuniar on "Editing error message in submission of required fields"</title>
<link>https://www.machform.com/forums/topic/editing-error-message-in-submission-of-required-fields#post-21056</link>
<pubDate>Sun, 18 May 2014 07:40:26 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">21056@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Having the red box color without any message would confuse people, in my opinion. However, if you prefer to do this, you can edit the &#34;includes/language.php&#34; file. Search for this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$languages[&#38;#39;val_required&#38;#39;] 	=	&#38;#39;This field is required. Please enter a value.&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and change it to become:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$languages[&#38;#39;val_required&#38;#39;] 	=	&#38;#39;&#38;#39;;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>inkpotprinting on "Editing error message in submission of required fields"</title>
<link>https://www.machform.com/forums/topic/editing-error-message-in-submission-of-required-fields#post-21030</link>
<pubDate>Tue, 13 May 2014 10:57:54 +0000</pubDate>
<dc:creator>inkpotprinting</dc:creator>
<guid isPermaLink="false">21030@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks Yuniar, that CSS works great. Is there any way to also get rid of &#34;This field is required. Please enter a value.&#34;? I think that simply having a red box is enough to alert the user to the problem.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Editing error message in submission of required fields"</title>
<link>https://www.machform.com/forums/topic/editing-error-message-in-submission-of-required-fields#post-20714</link>
<pubDate>Sat, 12 Apr 2014 12:04:14 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">20714@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;You can simply add CSS code into your form's theme for that.&#60;br /&#62;
Add this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#error_message {
  display: none !important;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;that should hide the error message from your form, without the need of modifying any file.
&#60;/p&#62;</description>
</item>
<item>
<title>jblackburn on "Editing error message in submission of required fields"</title>
<link>https://www.machform.com/forums/topic/editing-error-message-in-submission-of-required-fields#post-20680</link>
<pubDate>Thu, 10 Apr 2014 02:48:35 +0000</pubDate>
<dc:creator>jblackburn</dc:creator>
<guid isPermaLink="false">20680@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;With version 4, is this still the best method? I don't like editing the code as it is one more thing to have to remember when you upgrade. (Like the old custom-hooks hack).
&#60;/p&#62;</description>
</item>
<item>
<title>inkpotprinting on "Editing error message in submission of required fields"</title>
<link>https://www.machform.com/forums/topic/editing-error-message-in-submission-of-required-fields#post-16140</link>
<pubDate>Wed, 03 Oct 2012 15:30:49 +0000</pubDate>
<dc:creator>inkpotprinting</dc:creator>
<guid isPermaLink="false">16140@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Please ignore me, I am an idiot. That worked perfectly, thanks for your help!
&#60;/p&#62;</description>
</item>
<item>
<title>inkpotprinting on "Editing error message in submission of required fields"</title>
<link>https://www.machform.com/forums/topic/editing-error-message-in-submission-of-required-fields#post-16139</link>
<pubDate>Wed, 03 Oct 2012 15:28:25 +0000</pubDate>
<dc:creator>inkpotprinting</dc:creator>
<guid isPermaLink="false">16139@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;OK I just tried this Yuniar, the code in my view-functions.php looks a bit different to yours. Lines 4324 to 4336 have this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(!empty($custom_error)){
			$form-&#38;gt;error_message =&#38;lt;&#38;lt;&#38;lt;EOT
			&#38;lt;li id=&#38;quot;error_message&#38;quot;&#38;gt;
					&#38;lt;h3 id=&#38;quot;error_message_title&#38;quot;&#38;gt;{$custom_error}&#38;lt;/h3&#38;gt;
			&#38;lt;/li&#38;gt;
EOT;
		}elseif(!empty($error_elements)){
			$form-&#38;gt;error_message =&#38;lt;&#38;lt;&#38;lt;EOT
			&#38;lt;li id=&#38;quot;error_message&#38;quot;&#38;gt;
					&#38;lt;h3 id=&#38;quot;error_message_title&#38;quot;&#38;gt;{$mf_lang[&#38;#39;error_title&#38;#39;]}&#38;lt;/h3&#38;gt;
					&#38;lt;p id=&#38;quot;error_message_desc&#38;quot;&#38;gt;{$mf_lang[&#38;#39;error_desc&#38;#39;]}&#38;lt;/p&#38;gt;
			&#38;lt;/li&#38;gt;
EOT;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Which bits should I change/delete?
&#60;/p&#62;</description>
</item>
<item>
<title>inkpotprinting on "Editing error message in submission of required fields"</title>
<link>https://www.machform.com/forums/topic/editing-error-message-in-submission-of-required-fields#post-16138</link>
<pubDate>Wed, 03 Oct 2012 15:17:29 +0000</pubDate>
<dc:creator>inkpotprinting</dc:creator>
<guid isPermaLink="false">16138@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you!
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Editing error message in submission of required fields"</title>
<link>https://www.machform.com/forums/topic/editing-error-message-in-submission-of-required-fields#post-16131</link>
<pubDate>Wed, 03 Oct 2012 14:20:32 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">16131@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;You can edit &#34;includes/view-functions.php&#34; file, search around line 4336-4341 for this block of code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$form-&#38;gt;error_message =&#38;lt;&#38;lt;&#38;lt;EOT
			&#38;lt;li id=&#38;quot;error_message&#38;quot;&#38;gt;
					&#38;lt;h3 id=&#38;quot;error_message_title&#38;quot;&#38;gt;{$mf_lang[&#38;#39;error_title&#38;#39;]}&#38;lt;/h3&#38;gt;
					&#38;lt;p id=&#38;quot;error_message_desc&#38;quot;&#38;gt;{$mf_lang[&#38;#39;error_desc&#38;#39;]}&#38;lt;/p&#38;gt;
			&#38;lt;/li&#38;gt;
EOT;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;simply remove that block of code.
&#60;/p&#62;</description>
</item>
<item>
<title>inkpotprinting on "Editing error message in submission of required fields"</title>
<link>https://www.machform.com/forums/topic/editing-error-message-in-submission-of-required-fields#post-16118</link>
<pubDate>Tue, 02 Oct 2012 15:48:01 +0000</pubDate>
<dc:creator>inkpotprinting</dc:creator>
<guid isPermaLink="false">16118@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;Is it possible to get rid of &#34;There was a problem with your submission. Errors have been highlighted below.&#34; when people don't fill in required fields? I think the red highlighting and &#34;This field is required. Please enter a value.&#34; is sufficient for what we need, and the big box at the top makes the form too long.&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
