<?xml version="1.0" encoding="UTF-8"?><!-- 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>Smashly Community Forums &#187; Topic: Using JS to add form validation/required fields</title>
		<link>http://smashly.net/community/</link>
		<description>Smashly Community Forums &#187; Topic: Using JS to add form validation/required fields</description>
		<language>en</language>
		<pubDate>Wed, 08 Feb 2012 14:16:59 +0000</pubDate>

					<item>
				<title>byron on "Using JS to add form validation/required fields"</title>
				<link>http://smashly.net/community/topic/using-js-to-add-form-validationrequired-fields#post-809</link>
				<pubDate>Wed, 03 Mar 2010 18:15:06 +0000</pubDate>
				<dc:creator>byron</dc:creator>
				<guid isPermaLink="false">809@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Good suggestion.  What might also work would be a user exit in the submit code that lets you run some custom code and stop the submission on false return.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Byron
&#60;/p&#62;</description>
			</item>
					<item>
				<title>sommernyte on "Using JS to add form validation/required fields"</title>
				<link>http://smashly.net/community/topic/using-js-to-add-form-validationrequired-fields#post-804</link>
				<pubDate>Tue, 02 Mar 2010 19:11:20 +0000</pubDate>
				<dc:creator>sommernyte</dc:creator>
				<guid isPermaLink="false">804@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Perhaps in a future version, you could have a field somewhere to enter custom JS code, and then a checkbox somewhere where a user could check &#34;Yes&#34; to use their custom JS on form submit.  :)
&#60;/p&#62;</description>
			</item>
					<item>
				<title>byron on "Using JS to add form validation/required fields"</title>
				<link>http://smashly.net/community/topic/using-js-to-add-form-validationrequired-fields#post-794</link>
				<pubDate>Sat, 27 Feb 2010 04:45:04 +0000</pubDate>
				<dc:creator>byron</dc:creator>
				<guid isPermaLink="false">794@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Thanks Sommer!&#60;/p&#62;
&#60;p&#62;That's a great suggestion.  It is very cool when folks are figuring out how to make PhotoSmash better.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Byron
&#60;/p&#62;</description>
			</item>
					<item>
				<title>sommernyte on "Using JS to add form validation/required fields"</title>
				<link>http://smashly.net/community/topic/using-js-to-add-form-validationrequired-fields#post-793</link>
				<pubDate>Fri, 26 Feb 2010 17:58:03 +0000</pubDate>
				<dc:creator>sommernyte</dc:creator>
				<guid isPermaLink="false">793@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Yep, it was just bad JavaScript!&#60;/p&#62;
&#60;p&#62;If anyone else is trying to figure it out, you can use the Custom Forms to create your upload form and include your JavaScript validation code there.  Then, instead of using the [submit] short tag to create the submit button, grab the HTML generated by the plugin outputs (you can do this by using the short tag first, going to a live page and then viewing the code).  Then just add onclick to that tag in your Custom Form to have it run the JS validation.  :)
&#60;/p&#62;</description>
			</item>
					<item>
				<title>sommernyte on "Using JS to add form validation/required fields"</title>
				<link>http://smashly.net/community/topic/using-js-to-add-form-validationrequired-fields#post-792</link>
				<pubDate>Fri, 26 Feb 2010 17:51:12 +0000</pubDate>
				<dc:creator>sommernyte</dc:creator>
				<guid isPermaLink="false">792@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Hmmm, I was thinking it was a matter of using the HTML in place of the [submit] short tag and then adding onclick to validate, but it doesn't seem to be working.  Could be bad, script though...  Any advice in the meantime is appreciated!  :)
&#60;/p&#62;</description>
			</item>
					<item>
				<title>sommernyte on "Using JS to add form validation/required fields"</title>
				<link>http://smashly.net/community/topic/using-js-to-add-form-validationrequired-fields#post-790</link>
				<pubDate>Fri, 26 Feb 2010 16:43:12 +0000</pubDate>
				<dc:creator>sommernyte</dc:creator>
				<guid isPermaLink="false">790@http://smashly.net/community/</guid>
				<description>&#60;p&#62;I noticed in another thread, you mentioned using JS to make fields required.  I know how to do that, but what I'm not sure is how you'd tell the form onsubmit=&#34;return validate_form(this);&#34; when the plugin is generating the &#38;lt;form&#38;gt; tags?  I don't really want to modify the plugin itself if I don't have to, as those edits inevitably get lost during upgrades.&#60;/p&#62;
&#60;p&#62;Thank you!
&#60;/p&#62;</description>
			</item>
		
	</channel>

</rss>
