<?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: Autoclose page/modal window after review/submit</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Autoclose page/modal window after review/submit</description>
<language>en</language>
<pubDate>Wed, 06 May 2026 13:44:38 +0000</pubDate>

<item>
<title>zforray on "Autoclose page/modal window after review/submit"</title>
<link>https://www.machform.com/forums/topic/autoclose-pagemodal-window-after-reviewsubmit#post-15978</link>
<pubDate>Sat, 15 Sep 2012 02:41:00 +0000</pubDate>
<dc:creator>zforray</dc:creator>
<guid isPermaLink="false">15978@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Unfortunately, all efforts to get this to work have failed.  My guess is since your code didn't invoke this window, the close doesn't work.  There was something in the Likno doc about using &#34;parent.&#34;?
&#60;/p&#62;</description>
</item>
<item>
<title>zforray on "Autoclose page/modal window after review/submit"</title>
<link>https://www.machform.com/forums/topic/autoclose-pagemodal-window-after-reviewsubmit#post-15977</link>
<pubDate>Sat, 15 Sep 2012 02:19:37 +0000</pubDate>
<dc:creator>zforray</dc:creator>
<guid isPermaLink="false">15977@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks for the code (I was unaware of how much I can put into a message area).  I understand your hesitation.  However, I don't feel the need for the &#34;success message&#34; at all.  As I mentioned, this is just to send an email.  I basically want it to immediately close the window when they click submit, so I will lower the &#34;close_delay&#34; to almost nothing.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Autoclose page/modal window after review/submit"</title>
<link>https://www.machform.com/forums/topic/autoclose-pagemodal-window-after-reviewsubmit#post-15970</link>
<pubDate>Fri, 14 Sep 2012 08:39:20 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">15970@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;You can add the javascript code into your success message.&#60;br /&#62;
Below your success message, add this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script&#38;gt;
var close_delay = 2000;

t = null;
function closeMe(){
  t = setTimeout(&#38;quot;self.close()&#38;quot;,close_delay);
};

closeMe();
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That should close the window after 2 seconds.&#60;/p&#62;
&#60;p&#62;However, you need to change all those code into a single line. So, remove any new lines.&#60;/p&#62;
&#60;p&#62;I don't think this is a good idea though. Some of your users might get confused and thought there was some error with the submission. I believe having the user to click to close the window is much more usable. It's your choice though.
&#60;/p&#62;</description>
</item>
<item>
<title>zforray on "Autoclose page/modal window after review/submit"</title>
<link>https://www.machform.com/forums/topic/autoclose-pagemodal-window-after-reviewsubmit#post-15950</link>
<pubDate>Thu, 13 Sep 2012 02:58:42 +0000</pubDate>
<dc:creator>zforray</dc:creator>
<guid isPermaLink="false">15950@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I searched for this topic but since both replies were from &#38;gt;2-years ago, I wanted to re-ask this question for V3.&#60;/p&#62;
&#60;p&#62;I am creating individual forms for emails to multiple persons (thus hiding the true email addresses) and am using a pop-up/modal window.&#60;/p&#62;
&#60;p&#62;I would like to close the modal window after they review and click submit.  How can I do this?&#60;/p&#62;
&#60;p&#62;I am using Likno to generate the modal window and they say to close a window programatically, to use the code such as:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;a class=&#38;quot;likno-modal-project-close&#38;quot; href=&#38;quot;javascript:void(0)&#38;quot;&#38;gt;Close this window&#38;lt;/a&#38;gt;&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#38;lt;img src=&#38;quot;any_image_here.jpg&#38;quot; class=&#38;quot;likno-modal-project-close&#38;quot; width=&#38;quot;250&#38;quot; height=&#38;quot;233&#38;quot;/&#38;gt;&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#38;lt;a onclick=&#38;quot;likno_modal_project.close();&#38;quot; href=&#38;quot;javascript:void(0)&#38;quot;&#38;gt;Close this window&#38;lt;/a&#38;gt;&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#38;lt;img src=&#38;quot;any_image_here.jpg&#38;quot; onclick=&#38;quot;likno_modal_project.close();&#38;quot; width=&#38;quot;250&#38;quot; height=&#38;quot;233&#38;quot;/&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;but I want it to close automatically, not make them have to click on a button.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
