Greetings,
I’m getting the error “Unable to receive your comment at this time.” back from EE’s comment form processing code. This happens in the following circumstance: I fail to enter one of the required fields (name or email), then submit the form, then get the expected error back from EE that the name or email is missing.
Then, I fill out the additional required fields and click submit again. Unfortunately then I get the “Unable to receive your comment at this time.” message. After that, the form won’t allow submission no matter what. That seems like incorrect behavior to me. This prevents users from making a mistake and then correcting that mistake and re-submitting the form.
If I fill in all the fields correctly the first time, the form submits OK. Perhaps I’m doing something wrong. I’m using AJAX to submit the form, but that shouldn’t make a difference. Here is my comment form code. Please help.
Thanks,
North
{exp:channel:entries channel="blog-articles" disable="categories|member_data|pagination" limit="1"}
{if allow_comments}
{exp:comment:form}
{!-- this holds any return messages from the AJAX form post, good or bad --}
<div class="box round-box darker comment-message-box">
</div>
<label for="name">
Name (required):
</label>
<input type="text" id="name" name="name" />
<label for="email">
Email (required but not shown):
</label>
<input type="text" id="email" name="email" />
<label for="url">
Website:
</label>
<input type="text" id="url" name="url" />
<label for="comment">
Comment:
</label>
<textarea id="comment" name="comment" rows="8">{comment}</textarea>
<input type="checkbox" id="notify_me" name="notify_me" value="yes" {notify_me} />
<label for="notify_me" id="notify_me_label">Notify me of follow-up comments</label>
<a href="#" class="action-button"><small>Submit</small></a>
{/exp:comment:form}
{/if}
{/exp:channel:entries}