<?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: Comparing two fields for validation</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Comparing two fields for validation</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 23:01:14 +0000</pubDate>

<item>
<title>johnlaidlaw on "Comparing two fields for validation"</title>
<link>https://www.machform.com/forums/topic/comparing-two-fields-for-validation#post-18584</link>
<pubDate>Fri, 21 Jun 2013 01:27:41 +0000</pubDate>
<dc:creator>johnlaidlaw</dc:creator>
<guid isPermaLink="false">18584@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I have adapted some code from another thread to compare two hidden fields. &#60;/p&#62;
&#60;p&#62;if($form_id == 2456){ if($input['element_70'] == $input['element_73']){ $process_result['status'] = true; $process_result&#60;br /&#62;
['custom_error'] = 'Please use the link provided on your original confirmation email from us to open the Publicity Form for a&#60;br /&#62;
performance. Call us if you need this resent.'; } }&#60;/p&#62;
&#60;p&#62;This is in includes/post-functions just above:&#60;/p&#62;
&#60;p&#62;$element_child_lookup['address'] 	 = 5;&#60;br /&#62;
$element_child_lookup['simple_name'] = 1;&#60;/p&#62;
&#60;p&#62;The form has two pages and this evaluates fine when using the Continue at the end of the first page. However it does not evaluate correctly when Submitting at the end of the form. i.e.it revreses the validation. Do I need to put this if clause somwhere else as well?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
