<?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: Pass the current page URL to the form embedded there</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Pass the current page URL to the form embedded there</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 23:05:44 +0000</pubDate>

<item>
<title>williamansley on "Pass the current page URL to the form embedded there"</title>
<link>https://www.machform.com/forums/topic/pass-the-current-page-url-to-the-form-embedded-there#post-16150</link>
<pubDate>Wed, 03 Oct 2012 23:56:53 +0000</pubDate>
<dc:creator>williamansley</dc:creator>
<guid isPermaLink="false">16150@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I'm glad to hear it worked for you.
&#60;/p&#62;</description>
</item>
<item>
<title>maperformance on "Pass the current page URL to the form embedded there"</title>
<link>https://www.machform.com/forums/topic/pass-the-current-page-url-to-the-form-embedded-there#post-16149</link>
<pubDate>Wed, 03 Oct 2012 23:04:45 +0000</pubDate>
<dc:creator>maperformance</dc:creator>
<guid isPermaLink="false">16149@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks williamansley, that worked perfect!
&#60;/p&#62;</description>
</item>
<item>
<title>williamansley on "Pass the current page URL to the form embedded there"</title>
<link>https://www.machform.com/forums/topic/pass-the-current-page-url-to-the-form-embedded-there#post-16121</link>
<pubDate>Tue, 02 Oct 2012 23:08:05 +0000</pubDate>
<dc:creator>williamansley</dc:creator>
<guid isPermaLink="false">16121@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I'm sure it is possible to hide a field by editing the CSS file, but there is a much simpler way to do this in Machform 3.3. Just put the text &#34;hidden&#34; in the &#34;Custom CSS Class&#34; field at the bottom of the &#34;Field Properties&#34; tab of the field you want to hide. The &#34;Custom CSS Class&#34; field is visible when you are editing the form in the Form Manager.
&#60;/p&#62;</description>
</item>
<item>
<title>maperformance on "Pass the current page URL to the form embedded there"</title>
<link>https://www.machform.com/forums/topic/pass-the-current-page-url-to-the-form-embedded-there#post-16111</link>
<pubDate>Tue, 02 Oct 2012 00:03:38 +0000</pubDate>
<dc:creator>maperformance</dc:creator>
<guid isPermaLink="false">16111@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I have tried doing the custom CSS class on the ProductID field. I added this to my CSS file:&#60;br /&#62;
&#60;code&#62;li .hideproductid {display: none; visibility: hidden;}&#60;/code&#62;&#60;br /&#62;
but it doesn't hide the field. What am I doing wrong?
&#60;/p&#62;</description>
</item>
<item>
<title>maperformance on "Pass the current page URL to the form embedded there"</title>
<link>https://www.machform.com/forums/topic/pass-the-current-page-url-to-the-form-embedded-there#post-16110</link>
<pubDate>Mon, 01 Oct 2012 23:36:54 +0000</pubDate>
<dc:creator>maperformance</dc:creator>
<guid isPermaLink="false">16110@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;OK, new problem. I am trying to have this field hidden so the user doesn't see it (and therefore can't edit it), but if I set the field as &#34;Admin Only&#34; it doesn't show up in the email I receive after submission. How can I hide this field?
&#60;/p&#62;</description>
</item>
<item>
<title>maperformance on "Pass the current page URL to the form embedded there"</title>
<link>https://www.machform.com/forums/topic/pass-the-current-page-url-to-the-form-embedded-there#post-16109</link>
<pubDate>Mon, 01 Oct 2012 23:15:18 +0000</pubDate>
<dc:creator>maperformance</dc:creator>
<guid isPermaLink="false">16109@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Yup, that was it. I had downloaded the upgrade but had yet to install it. I did so and now it works fine. Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Pass the current page URL to the form embedded there"</title>
<link>https://www.machform.com/forums/topic/pass-the-current-page-url-to-the-form-embedded-there#post-16087</link>
<pubDate>Sat, 29 Sep 2012 18:15:06 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">16087@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;It seems you have it correct already. However, I forgot to ask this, what is your exact MachForm version?&#60;br /&#62;
The URL parameters only available since v3.2&#60;/p&#62;
&#60;p&#62;If you are still using older version (v3.0 or v3.1) you will need to update your MachForm first.&#60;br /&#62;
The latest version is v3.3 and you can download it from our member area. It's free of charge.
&#60;/p&#62;</description>
</item>
<item>
<title>maperformance on "Pass the current page URL to the form embedded there"</title>
<link>https://www.machform.com/forums/topic/pass-the-current-page-url-to-the-form-embedded-there#post-16076</link>
<pubDate>Fri, 28 Sep 2012 02:39:07 +0000</pubDate>
<dc:creator>maperformance</dc:creator>
<guid isPermaLink="false">16076@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;OK, I tried what you suggested and it did not work. Here is the form code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;form id=&#38;quot;form_15&#38;quot; class=&#38;quot;appnitro top_label&#38;quot; method=&#38;quot;post&#38;quot; data-highlightcolor=&#38;quot;#FFF7C0&#38;quot; action=&#38;quot;#main_body&#38;quot;&#38;gt;
					&#38;lt;div class=&#38;quot;form_description&#38;quot;&#38;gt;
			&#38;lt;h2&#38;gt;&#38;lt;/h2&#38;gt;
			&#38;lt;p&#38;gt;&#38;lt;/p&#38;gt;&#38;lt;p&#38;gt;If you see incorrect information or some other way to improve this listing, please let us know here. If you&#38;#39;d like a reply to your feedback, please &#38;lt;a href=&#38;quot;http://www.maperformance.com/support/tickets/contact/&#38;quot; target=&#38;quot;_blank&#38;quot;&#38;gt;submit a ticket here&#38;lt;/a&#38;gt; instead.&#38;lt;/p&#38;gt;&#38;lt;p&#38;gt;&#38;lt;/p&#38;gt;
		&#38;lt;/div&#38;gt;
			&#38;lt;ul&#38;gt;

					&#38;lt;li id=&#38;quot;li_2&#38;quot;&#38;gt;
		&#38;lt;label class=&#38;quot;description&#38;quot; for=&#38;quot;element_2&#38;quot;&#38;gt;Description &#38;lt;span id=&#38;quot;required_2&#38;quot; class=&#38;quot;required&#38;quot;&#38;gt;*&#38;lt;/span&#38;gt;&#38;lt;/label&#38;gt;
		&#38;lt;div&#38;gt;
			&#38;lt;textarea id=&#38;quot;element_2&#38;quot; name=&#38;quot;element_2&#38;quot; class=&#38;quot;element textarea medium&#38;quot; rows=&#38;quot;8&#38;quot; cols=&#38;quot;90&#38;quot;&#38;gt;&#38;lt;/textarea&#38;gt;

		&#38;lt;/div&#38;gt;&#38;lt;p class=&#38;quot;guidelines&#38;quot; id=&#38;quot;guide_2&#38;quot;&#38;gt;&#38;lt;small&#38;gt;Please be as descriptive as possible so we can improve this listing&#38;lt;/small&#38;gt;&#38;lt;/p&#38;gt;
		&#38;lt;/li&#38;gt;		&#38;lt;li class=&#38;quot;highlighted&#38;quot; id=&#38;quot;li_4&#38;quot;&#38;gt;
		&#38;lt;label class=&#38;quot;description&#38;quot; for=&#38;quot;element_4&#38;quot;&#38;gt;ProductID &#38;lt;/label&#38;gt;
		&#38;lt;div&#38;gt;
			&#38;lt;input id=&#38;quot;element_4&#38;quot; name=&#38;quot;element_4&#38;quot; class=&#38;quot;element text large&#38;quot; value=&#38;quot;&#38;quot; title=&#38;quot;&#38;quot; type=&#38;quot;text&#38;quot;&#38;gt;

		&#38;lt;/div&#38;gt;
		&#38;lt;/li&#38;gt;		&#38;lt;li id=&#38;quot;li_captcha&#38;quot;&#38;gt;
		&#38;lt;label class=&#38;quot;description&#38;quot; for=&#38;quot;captcha_response_field&#38;quot;&#38;gt;Type the letters you see in the image below. &#38;lt;/label&#38;gt;
		&#38;lt;div&#38;gt;
			&#38;lt;img id=&#38;quot;captcha_image&#38;quot; src=&#38;quot;captcha.php?t=1348774107&#38;quot; alt=&#38;quot;Please refresh your browser to see this image.&#38;quot; height=&#38;quot;60&#38;quot; width=&#38;quot;200&#38;quot;&#38;gt;&#38;lt;br&#38;gt;
&#38;lt;input id=&#38;quot;captcha_response_field&#38;quot; name=&#38;quot;captcha_response_field&#38;quot; class=&#38;quot;element text small&#38;quot; type=&#38;quot;text&#38;quot;&#38;gt;&#38;lt;div id=&#38;quot;dummy_captcha_internal&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;
		&#38;lt;/div&#38;gt;	 

		&#38;lt;/li&#38;gt;

					&#38;lt;li id=&#38;quot;li_buttons&#38;quot; class=&#38;quot;buttons&#38;quot;&#38;gt;
			    &#38;lt;input name=&#38;quot;form_id&#38;quot; value=&#38;quot;15&#38;quot; type=&#38;quot;hidden&#38;quot;&#38;gt;

			    &#38;lt;input name=&#38;quot;submit_form&#38;quot; value=&#38;quot;1&#38;quot; type=&#38;quot;hidden&#38;quot;&#38;gt;
			    &#38;lt;input name=&#38;quot;page_number&#38;quot; value=&#38;quot;1&#38;quot; type=&#38;quot;hidden&#38;quot;&#38;gt;
				&#38;lt;input id=&#38;quot;submit_form&#38;quot; class=&#38;quot;button_text&#38;quot; name=&#38;quot;submit_form&#38;quot; value=&#38;quot;Submit&#38;quot; type=&#38;quot;submit&#38;quot;&#38;gt;
		&#38;lt;/li&#38;gt;
			&#38;lt;/ul&#38;gt;
		&#38;lt;/form&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;So my element is element_4. I have edited the form embed code like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
var __machform_url = &#38;#39;http://www.maperformance.com/forms/embed.php?id=15&#38;#38;element_4={$product.productid}&#38;#39;;
var __machform_height = 470;
&#38;lt;/script&#38;gt;
&#38;lt;div id=&#38;quot;mf_placeholder&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;http://www.maperformance.com/forms/js/jquery.min.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;http://www.maperformance.com/forms/js/jquery.ba-postmessage.min.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;http://www.maperformance.com/forms/js/machform_loader.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Where $product.productid is the Smarty variable for the number I'm after. This is not populating the form as expected. I can see that the code is working like it should because the page source shows this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
var __machform_url = &#38;#39;http://www.maperformance.com/forms/embed.php?id=15&#38;#38;element_4=25689&#38;#39;;
var __machform_height = 470;
&#38;lt;/script&#38;gt;
&#38;lt;div id=&#38;quot;mf_placeholder&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;http://www.maperformance.com/forms/js/jquery.min.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;http://www.maperformance.com/forms/js/jquery.ba-postmessage.min.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;http://www.maperformance.com/forms/js/machform_loader.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>yuniar on "Pass the current page URL to the form embedded there"</title>
<link>https://www.machform.com/forums/topic/pass-the-current-page-url-to-the-form-embedded-there#post-15999</link>
<pubDate>Thu, 20 Sep 2012 18:38:25 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">15999@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Actually, you don't need to modify the URL of your pages.&#60;br /&#62;
You simply need to modify the form embed code to dynamically include the current page URL or PRODUCTID or anything to identify the page.&#60;/p&#62;
&#60;p&#62;I'm not familiar with X-Cart but I believe it's using smarty template? So there should be some kind of template variable there.&#60;br /&#62;
So for example, let say you have a template variable named &#60;strong&#62;{$PRODUCTID}&#60;/strong&#62; and you would like to pass this into your form.&#60;/p&#62;
&#60;p&#62;Then your form embed code would be something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
var __machform_url = &#38;#39;http://example.com/machform/embed.php?id=10250&#38;#38;element_3={$PRODUCTID}&#38;#39;;
var __machform_height = 2124;
&#38;lt;/script&#38;gt;
&#38;lt;div id=&#38;quot;mf_placeholder&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;http://example.com/machform/js/jquery.ba-postmessage.min.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;http://example.com/machform/js/machform_loader.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;the most important part of the above code is this line:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;var __machform_url = &#38;#39;http://example.com/machform/embed.php?id=10250&#38;#38;element_3={$PRODUCTID}&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This way, each time the form is being loaded on different page, your template will replace {$PRODUCTID} with the actual ID of that page, thus passing the value to your form field.
&#60;/p&#62;</description>
</item>
<item>
<title>maperformance on "Pass the current page URL to the form embedded there"</title>
<link>https://www.machform.com/forums/topic/pass-the-current-page-url-to-the-form-embedded-there#post-15989</link>
<pubDate>Tue, 18 Sep 2012 20:47:07 +0000</pubDate>
<dc:creator>maperformance</dc:creator>
<guid isPermaLink="false">15989@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks for the response, and I did look into that URL you linked me to previously. Unfortunately I don't have any easy way to modify the URL of my pages to include extra parameters like that. I there perhaps a Javascript that can be put in the form to auto-poll the current URL and fill in the field for me?
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Pass the current page URL to the form embedded there"</title>
<link>https://www.machform.com/forums/topic/pass-the-current-page-url-to-the-form-embedded-there#post-15984</link>
<pubDate>Mon, 17 Sep 2012 19:18:29 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">15984@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Simply create a text field and then set the &#34;Custom CSS Class&#34; to &#34;hidden&#34; so that the field will be hidden. &#60;/p&#62;
&#60;p&#62;Then pass the page URL using this method:&#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;I believe that should work.
&#60;/p&#62;</description>
</item>
<item>
<title>maperformance on "Pass the current page URL to the form embedded there"</title>
<link>https://www.machform.com/forums/topic/pass-the-current-page-url-to-the-form-embedded-there#post-15976</link>
<pubDate>Sat, 15 Sep 2012 01:34:53 +0000</pubDate>
<dc:creator>maperformance</dc:creator>
<guid isPermaLink="false">15976@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I am trying to embed a form into a product page on me e-commerce site. How can I include a hidden field in the form that will display to me what page the form was submitted from, so I can make it as easy as possible for users?&#60;/p&#62;
&#60;p&#62;More detail: We are going to add a &#34;Improve this listing&#34; form on every product page on our site. Putting a form there is easy, since our e-commerce platform (X-cart) uses templates to render every product page with a unique URL based off the item's PRODUCTID in the database. Now what I'm trying to have is as simple of a form as possible for someone to fill out and submit letting us know of an error or update to a product on our site. The example I'm working from is here (http://www.wayfair.com/Skyline-Furniture-Wingback-Chair-88-1-SKY2701.html?refid=FR49-SKY2701_7020365&#38;#38;PiID=7020365). If you look under the Product Details section, there is a link, &#34;See something odd? Report it here.&#34; that reveals a hidden DIV with a single field form and a submit button. I'd like to replicate this. I have the DIV code in place, but need to identify what page the form is being submitted from, so I need to pass the current page's URL to a hidden field on the form submission.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
