So, ive got two forms on a page, both work flawlessly when using type="button" but as soon as i change it to type="image" the submitVar and thus validation stop working.
And i'm not sure why...
working form:
[[!FormIt?
&hooks=`spam,email,redirect`
&emailSubject=`Ask A Question`
&emailTpl=`AskAQuestionEmailVEE`
&emailTo=`[email protected]`
&redirectTo=`315`
&validate=`Vquestion:required,
Vemailq:email:required`
&submitVar=`qvee24`
]]
<form action="[[~[[*id]]]]" method="post" class="question" name="question">
<input type="hidden" name="nospam:blank" value="" />
<ul>
<li>
<label for="question"> Question: </label>
<input type="text" name="Vquestion" id="Vquestion" value="[[!+fi.Vquestion]]" />
<span class="error">[[!+fi.error.Vquestion]]</span>
<li>
<label for="emailaddress"> Email: </label>
<input type="text" name="Vemailq" id="Vemailq" value="[[!+fi.Vemailq]]" />
<span class="error">[[!+fi.error.Vemailq]]</span> </li>
<li>
<input type="submit" value="Ask A Question" name="qvee24" id="qvee24" />
</li>
</ul>
</form>
Failure:
<input type="image" src="assets/templates/ssb/images/ask-a-question.jpg" width="183" height="21" value="Ask A Question" name="qvee24" id="qvee24" />
both with the same call.
Any ideas?
TIA