<?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: Form "X" checking required fields of Form "Y"</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Form "X" checking required fields of Form "Y"</description>
<language>en</language>
<pubDate>Wed, 06 May 2026 16:05:44 +0000</pubDate>

<item>
<title>jacorley on "Form "X" checking required fields of Form "Y""</title>
<link>https://www.machform.com/forums/topic/urgent-form-x-checking-required-fields-of-form-y#post-15007</link>
<pubDate>Sat, 09 Jun 2012 01:36:14 +0000</pubDate>
<dc:creator>jacorley</dc:creator>
<guid isPermaLink="false">15007@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This is what I was using...&#60;/p&#62;
&#60;p&#62;//check for specific form css, if any, use it instead&#60;br /&#62;
if($form-&#38;gt;has_css){&#60;br /&#62;
if ($form-&#38;gt;id  = &#34;1&#34;){&#60;br /&#62;
if(!preg_match('/(symbian&#124;smartphone&#124;phone&#124;android)/i', strtolower($_SERVER['HTTP_USER_AGENT']))) {&#60;br /&#62;
$css_dir = $mf_settings['data_dir'].&#34;/form_{$form_id}/css/&#34;;&#60;br /&#62;
}&#60;br /&#62;
else {&#60;br /&#62;
$css_dir = $mf_settings['data_dir'].&#34;/form_3/css/&#34;;&#60;br /&#62;
}&#60;br /&#62;
}
&#60;/p&#62;</description>
</item>
<item>
<title>jacorley on "Form "X" checking required fields of Form "Y""</title>
<link>https://www.machform.com/forums/topic/urgent-form-x-checking-required-fields-of-form-y#post-15000</link>
<pubDate>Fri, 08 Jun 2012 18:00:12 +0000</pubDate>
<dc:creator>jacorley</dc:creator>
<guid isPermaLink="false">15000@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I had added some custom code to view-functions to dynamically select a different CSS file if a mobile browser is present. It worked great until I created a third form. I had two forms that were identical except for one has multiple columns and the other had one column (needed this because the mobile browser really screwed up the multiple columns.)&#60;/p&#62;
&#60;p&#62;For some reason, the CSS reference altered the form the data was submitted to in post-functions. It always thought the data was from form 1. &#60;/p&#62;
&#60;p&#62;Basically all I need now is a way to display the css for form one normally and to display the css for form 2 when a mobile browser is detected. I am alwaysndisplay form 1 using javascript  i am just tricking the mobile browsermto display it properly  I know the code to properly detect the browser and thought i knew how to alter the CSS source, I just obviously put it in a bad place or underestimated the effects of changing the CSS source &#60;/p&#62;
&#60;p&#62;With the code I added, when I view source it worked perfectly until the form was submitted. When form one was displayed source showed CSS for form 1. When viewed in mobile browser, showed form 2 CSS which is what I wanted to happen.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Form "X" checking required fields of Form "Y""</title>
<link>https://www.machform.com/forums/topic/urgent-form-x-checking-required-fields-of-form-y#post-14997</link>
<pubDate>Fri, 08 Jun 2012 14:05:39 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">14997@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Jeff,&#60;/p&#62;
&#60;p&#62;What's the remaining problem?
&#60;/p&#62;</description>
</item>
<item>
<title>jacorley on "Form "X" checking required fields of Form "Y""</title>
<link>https://www.machform.com/forums/topic/urgent-form-x-checking-required-fields-of-form-y#post-14984</link>
<pubDate>Wed, 06 Jun 2012 22:17:06 +0000</pubDate>
<dc:creator>jacorley</dc:creator>
<guid isPermaLink="false">14984@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Problem solved...partially...
&#60;/p&#62;</description>
</item>
<item>
<title>jacorley on "Form "X" checking required fields of Form "Y""</title>
<link>https://www.machform.com/forums/topic/urgent-form-x-checking-required-fields-of-form-y#post-14983</link>
<pubDate>Wed, 06 Jun 2012 22:07:54 +0000</pubDate>
<dc:creator>jacorley</dc:creator>
<guid isPermaLink="false">14983@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Now I have noticed that in the machform admin, if I select view on form 4, it displays what it says is form 4 but it shows form 1. It seams form #1 is overriding every other form.
&#60;/p&#62;</description>
</item>
<item>
<title>jacorley on "Form "X" checking required fields of Form "Y""</title>
<link>https://www.machform.com/forums/topic/urgent-form-x-checking-required-fields-of-form-y#post-14981</link>
<pubDate>Wed, 06 Jun 2012 20:43:37 +0000</pubDate>
<dc:creator>jacorley</dc:creator>
<guid isPermaLink="false">14981@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;UPDATE - I removed my added session variable from post-functions and still no go.&#60;/p&#62;
&#60;p&#62;Also, I am using the recommended javascript to display my forms. I am currently using the code inside a wordpress post. I have tried moving it to a page template and the results are the same.&#60;br /&#62;
________&#60;/p&#62;
&#60;p&#62;My users submit one form. I email them a verification code, which they enter on a second form on the redirect page.&#60;/p&#62;
&#60;p&#62;When they submit to the second form, it is checking required fields from the first form and displaying the the form to fill in the required fields.&#60;/p&#62;
&#60;p&#62;I am carrying some session variables to be able to use form data on the redirect page. Would that cause this?&#60;/p&#62;
&#60;p&#62;First form example: &#60;a href=&#34;http://www.drainagehelp.com/pro/service-areas/north-carolina/raleigh-nc/&#34; rel=&#34;nofollow&#34;&#62;http://www.drainagehelp.com/pro/service-areas/north-carolina/raleigh-nc/&#60;/a&#62;&#60;br /&#62;
The second form (and redirect page from form 1 submission) - &#60;a href=&#34;http://www.drainagehelp.com/pro/verify/&#34; rel=&#34;nofollow&#34;&#62;http://www.drainagehelp.com/pro/verify/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;To see what is going wrong, try submitting the second form. It will display the empty fields error and display form 1.&#60;/p&#62;
&#60;p&#62;Thanks in advance.&#60;/p&#62;
&#60;p&#62;-Jeff
&#60;/p&#62;</description>
</item>

</channel>
</rss>
