<?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: Passing parameter from one form to a second form</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Passing parameter from one form to a second form</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 23:06:54 +0000</pubDate>

<item>
<title>johnlaidlaw on "Passing parameter from one form to a second form"</title>
<link>https://www.machform.com/forums/topic/passing-parameter-from-one-form-to-a-second-form#post-21115</link>
<pubDate>Mon, 26 May 2014 18:51:53 +0000</pubDate>
<dc:creator>johnlaidlaw</dc:creator>
<guid isPermaLink="false">21115@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks Yuniar,&#60;/p&#62;
&#60;p&#62;I have literally just spotted the new V4 function enabling use template variables in the Submission Confirmation. This now works for what I need on this occasion. &#60;/p&#62;
&#60;p&#62;I also spotted that the entry ID no is not called 'id' but 'entry_no' so my modification wasn't going to work anyway! I have changed this as well but it still seems not to work for some reason, but its not critical now as the new functionality has solved the problem anyway.&#60;/p&#62;
&#60;p&#62;Many thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Passing parameter from one form to a second form"</title>
<link>https://www.machform.com/forums/topic/passing-parameter-from-one-form-to-a-second-form#post-21114</link>
<pubDate>Mon, 26 May 2014 17:18:50 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">21114@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;If you are using v4, there is no need to do any modification.&#60;/p&#62;
&#60;p&#62;You can use template variables to populate field values:&#60;br /&#62;
&#60;a href=&#34;http://www.appnitro.com/doc-url-parameters&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/doc-url-parameters&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You can also use template variables to construct your &#34;Redirect URL&#34;&#60;br /&#62;
This way you'll be able to pass data from one form to another.
&#60;/p&#62;</description>
</item>
<item>
<title>johnlaidlaw on "Passing parameter from one form to a second form"</title>
<link>https://www.machform.com/forums/topic/passing-parameter-from-one-form-to-a-second-form#post-21108</link>
<pubDate>Mon, 26 May 2014 06:41:36 +0000</pubDate>
<dc:creator>johnlaidlaw</dc:creator>
<guid isPermaLink="false">21108@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I have inserted a url in the Submission Confirmation page to take the user to a new form:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;view.php?id=13904&#38;quot;&#60;/code&#62; I wish to prepopulate a field on the new form with the submission id from the just submitted form. &#60;/p&#62;
&#60;p&#62;In post_functions.php I have ammended line 1691 to read:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$process_result[&#38;#39;form_redirect&#38;#39;]  = $form_redirect . &#38;#39;&#38;#38;IDNo=&#38;#39; . $table_data[&#38;#39;id&#38;#39;];&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;where 'id' is the field I wish to copy to the new form&#60;/p&#62;
&#60;p&#62;In view_functions.php after line 4381:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$element[$j]-&#38;gt;default_value = htmlspecialchars($row[&#38;#39;element_default_value&#38;#39;]);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I have inserted:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;if($form_id == 13904 &#38;#38;&#38;#38; $row[&#38;#39;element_id&#38;#39;] == 17){ $element[$j]-&#38;gt;default_value = $_GET[&#38;#39;IDNo&#38;#39;]; };&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Where the field I wish to prepopulate is element_17.&#60;/p&#62;
&#60;p&#62;Something is not connecting. If I change $_GET['IDNo'] to a value, it will prepopulate the field. However I can't seem to pick up the value if the 'id' from the old form.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
