<?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: UPPERCASE letters</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: UPPERCASE letters</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 08:10:36 +0000</pubDate>

<item>
<title>redityo on "UPPERCASE letters"</title>
<link>https://www.machform.com/forums/topic/uppercase-letters#post-7035</link>
<pubDate>Mon, 24 Aug 2009 19:09:19 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">7035@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;for your name field, the code should be like this :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($form_id == &#38;#39;2&#38;#39; &#38;#38;&#38;#38; $element_id == &#38;#39;2&#38;#39;) {
	if (!ctype_upper($user_input[$element_name_2])) {
		$error_elements[$element_id] = &#38;quot;You must use upper case only !&#38;quot;;
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;For the city, I assume you're using text field type. Then you can put these code , bellow line 168.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($form_id == &#38;#39;2&#38;#39; &#38;#38;&#38;#38; $element_id == &#38;#39;13&#38;#39;) {
	if (!ctype_upper($element_data])) {
		$error_elements[$element_id] = &#38;quot;You must use upper case only !&#38;quot;;
	}
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>grisu59 on "UPPERCASE letters"</title>
<link>https://www.machform.com/forums/topic/uppercase-letters#post-7034</link>
<pubDate>Mon, 24 Aug 2009 16:03:29 +0000</pubDate>
<dc:creator>grisu59</dc:creator>
<guid isPermaLink="false">7034@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;My form_id = '2'&#60;br /&#62;
My fields are COGNOME (lastname) element_2 and CITTA' (city) element_13&#60;/p&#62;
&#60;p&#62;it will work properly the same?
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "UPPERCASE letters"</title>
<link>https://www.machform.com/forums/topic/uppercase-letters#post-7030</link>
<pubDate>Mon, 24 Aug 2009 13:54:24 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">7030@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;You need to do small customization then, edit your &#34;includes/post-functions.php&#34; file and go to line 324 and you'll see this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$validation_result = validate_element($target_input,$rules);&#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 ($form_id == &#38;#39;70&#38;#39; &#38;#38;&#38;#38; $element_id == &#38;#39;4&#38;#39;) {
	if (!ctype_upper($user_input[$element_name_2])) {
		$error_elements[$element_id] = &#38;quot;You must use upper case only !&#38;quot;;
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then change the form ID and element ID with yours. It should show error when a user input lower case character. &#60;/p&#62;
&#60;p&#62;Those code will work on &#34;name&#34; type field and for the city, what field type do you use ?
&#60;/p&#62;</description>
</item>
<item>
<title>grisu59 on "UPPERCASE letters"</title>
<link>https://www.machform.com/forums/topic/uppercase-letters#post-7021</link>
<pubDate>Sun, 23 Aug 2009 15:26:29 +0000</pubDate>
<dc:creator>grisu59</dc:creator>
<guid isPermaLink="false">7021@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I would like that in some fileds the user write only with UPPERCASE letters&#60;br /&#62;
For example in lastname and town&#60;/p&#62;
&#60;p&#62;How can I setup this?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>

</channel>
</rss>
