Greetings,
I’ve got a comment form set up, also using Solspace’s Comment Upload extension, and i’m having some issues with displaying errors when submitting the comments. If a user doesn’t fill in the name, email, or comment field(s), instead of showing an error, the page refreshes. my comment form code looks like the following:
{exp:comment:form enable_uploads="y" upload_dir_name="Cartoons"}
{if logged_out}
<label>Name:</label><input type="text" name="name" value="{name}" size="50" id="name"/></p>
<label>Email:</label><input type="text" name="email" value="{email}" size="50" id="email" /></p>
<label>URL:</label><input type="text" name="url" value="{url}" size="50" id="url" /></p>
{/if}
<label>Cartoon:</label><input type="file" name="userfile[]" id="upload" /></p>
<textarea name="comment" value="Cartoon description" cols="50" rows="12">{comment}</textarea></p>
{if captcha}
Submit the word you see below:
{captcha}
<input type="text" name="captcha" value="" size="20" maxlength="20" style="width:140px;" />
{/if}
<input type="submit" name="submit" value="Submit" id="submit" />
<input type="hidden" name="RET" value="http://iwantyourmoney.net/cartoons/thanks" />
{/exp:comment:form}How can i get the errors to display? And secondly, is it possible to show them inline instead of the default EE error page?
Thanks for your help,
Pat