I’m having a similar problem: My form does not send, nor does anything happen when the submit button is clicked.
My eForm call:
[!eForm? &formid=`counselor_form` &tpl=`counselor_form` &report=`counselor_report` &to=`[email protected]` &thankyou=`counselor_confirm` &vericode=`1` &subject=`HEAV FORM: Counselor Submission from [+firstname+] [+lastname+]`&jScript=`CharLeft` !]
My Form code:
<h1 class="h1"> Submission Form for Counselors, Testers, and Tutors </h1>
<p >In order to be considered for HEAV's counselor and tutor referral list, please complete the following information. </p>
<p><span style="color:#900;">[+validationmessage+]</span></p>
<form method="post" action="[~[*id*]~]" name="counselors" >
<input type="hidden" name="formid" value="counselor_form" />
<p>
<span class="red"> *</span>
Required Fields<br/>
[+contact-required_message+]</p>
<p><strong>Submitter's Information <br />
</strong> (This information does not go on the website.) </p>
<table>
<tr>
<td >First
Name:</td>
<td><input name="firstnamesubmitter" id="firstnamesubmitter" size="30" maxlength="255"/>
</td>
</tr>
<tr>
<td > Last
Name: </td>
<td ><input name="lastnamesubmitter" id="lastnamesubmitter" size="30" maxlength="255"/></td>
</tr>
<tr>
<td > Phone:</td>
<td ><input name="phonesubmitter" type="text" id="phonesubmitter" size="30" maxlength="255"/>
</td>
</tr>
<tr>
<td > E-mail Address:</td>
<td><input name="emailsubmitter" type="text" id="emailsubmitter" size="30" maxlength="127" eform="E-mail Address:string:1"/>
<span class="red">*</span></td>
</tr>
<tr>
<td >Retype E-mail Address:</td>
<td ><input name="email2submitter" type="text" id="email2submitter" size="30" maxlength="127" eform="Retype E-mail Address:string:1"/>
<span class="red">*</span></td>
</tr>
</table>
<p><strong>Information for Website</strong></p>
<table><tr>
<td >First
Name:</td>
<td>
<input maxlength="255" name="firstname" size="30" />
</td></tr>
<tr><td >
Last
Name: </td>
<td >
<input maxlength="255" name="lastname" size="30" /></td></tr>
<tr>
<td >Company Name: </td>
<td ><input name="companyname" id="companyname" size="30" maxlength="255"/></td>
</tr>
<tr><td >
Address:</td>
<td >
<input maxlength="255" name="address" size="30" /></td></tr>
<tr><td >City: </td>
<td >
<input maxlength="255" name="city" size="30" /></td></tr>
<tr><td >
State
or Province: </td>
<td>
<select name="state">
<option>Please Select One</option>
<option value="Outside US and Canada">Outside US and
Canada</option>
<option value="Alabama">Alabama</option>
<option value="Alaska">Alaska</option>
<option value="Alberta">Alberta</option>
<option value="American Samoa">American Samoa</option>
<option value="Arizona">Arizona</option>
<option value="Arkansas">Arkansas</option>
<option value="Armed Forces Americas">Armed Forces
Americas</option>
<option value="Armed Forces Europe">Armed Forces Europe</option>
<option value="Armed Forces Pacific">Armed Forces Pacific</option>
<option value="British Columbia">British Columbia</option>
<option value="California">California</option>
<option value="Colorado">Colorado</option>
<option value="Connecticut">Connecticut</option>
<option value="Delaware">Delaware</option>
<option value="District Of Columbia">District Of Columbia</option>
<option value="Florida">Florida</option>
<option value="Georgia">Georgia</option>
<option value="Guam">Guam</option>
<option value="Hawaii">Hawaii</option>
<option value="Idaho">Idaho</option>
<option value="Illinois">Illinois</option>
<option value="Indiana">Indiana</option>
<option value="Iowa">Iowa</option>
<option value="Kansas">Kansas</option>
<option value="Kentucky">Kentucky</option>
<option value="Louisiana">Louisiana</option>
<option value="Maine">Maine</option>
<option value="Manitoba">Manitoba</option>
<option value="Maryland">Maryland</option>
<option value="Massachusetts">Massachusetts</option>
<option value="Michigan">Michigan</option>
<option value="Minnesota">Minnesota</option>
<option value="Mississippi">Mississippi</option>
<option value="Missouri">Missouri</option>
<option value="Montana">Montana</option>
<option value="Nebraska">Nebraska</option>
<option value="Nevada">Nevada</option>
<option value="New Brunswick">New Brunswick</option>
<option value="New Hampshire">New Hampshire</option>
<option value="New Jersey">New Jersey</option>
<option value="New Mexico">New Mexico</option>
<option value="New York">New York</option>
<option value="Newfoundland">Newfoundland</option>
<option value="North Carolina">North Carolina</option>
<option value="North Dakota">North Dakota</option>
<option value="Northern Mariana Is">Northern Mariana Is</option>
<option value="Northwest Territories">Northwest
Territories</option>
<option value="Nova Scotia">Nova Scotia</option>
<option value="Ohio">Ohio</option>
<option value="Oklahoma">Oklahoma</option>
<option value="Ontario">Ontario</option>
<option value="Oregon">Oregon</option>
<option value="Palau">Palau</option>
<option value="Pennsylvania">Pennsylvania</option>
<option value="Prince Edward Island">Prince Edward Island</option>
<option value="Quebec">Quebec</option>
<option value="Puerto Rico">Puerto Rico</option>
<option value="Rhode Island">Rhode Island</option>
<option value="Saskatchewan">Saskatchewan</option>
<option value="South Carolina">South Carolina</option>
<option value="South Dakota">South Dakota</option>
<option value="Tennessee">Tennessee</option>
<option value="Texas">Texas</option>
<option value="Utah">Utah</option>
<option value="Vermont">Vermont</option>
<option value="Virgin Islands">Virgin Islands</option>
<option value="Virginia" selected="selected">Virginia</option>
<option value="Washington">Washington</option>
<option value="West Virginia">West Virginia</option>
<option value="Wisconsin">Wisconsin</option>
<option value="Wyoming">Wyoming</option>
<option value="Yukon Territory">Yukon Territory</option>
</select>
<span class="red">*</span></td></tr>
<tr><td >ZIP
or Postal Code: </td>
<td >
<input maxlength="255" name="zipcode" size="18" type="text"/></td>
</tr>
<tr><td >
Phone:</td>
<td >
<input maxlength="255" name="phone" size="30" type="text"/> </td></tr>
<tr><td >
Alternate Phone Number: <br/> (Please specify whether phone number is a cell number, house number, or some other type number. Leave field blank if you do not want an alternate number listed.)</td>
<td >
<input maxlength="255" name="altphone" size="30" type="text"/> </td></tr>
<tr><td >
Fax:</td>
<td >
<input maxlength="255" name="fax" size="30" type="text"/> </td></tr>
<tr>
<td >Website:</td>
<td><input name="website" type="text" id="website" size="30" maxlength="255"/></td>
</tr>
<tr>
<td > E-mail Address:</td>
<td>
<input maxlength="127" name="email" eform="E-mail Address:string:1" size="25" type="text"/>
<span class="red">*</span></td></tr>
<tr>
<td >Retype E-mail Address:</td>
<td >
<input maxlength="127" name="email2" eform="Retype E-mail Address:string:1" size="25" type="text"/>
<span class="red">*</span></td></tr>
</table>
<p>
<strong>Primary Service Area <br />
</strong>(Please select only one.)<br/>
<br/>
<input name="hampton" type="checkbox" id="hampton" value="1"/>
Hampton Roads/Williamsburg/Chesapeake Area
<br/>
<input name="northernva" type="checkbox" id="northernva" value="1"/>
Northern Virginia<br/>
<input name="richmond" type="checkbox" id="richmond" value="1"/>
Richmond Area<br/>
<input name="statewide" type="checkbox" id="statewide" value="1"/>
Statewide Companies (serve multiple areas)<br/>
<input name="other" type="checkbox" id="other" value="1"/>
All Other Areas </p>
<p>
<strong>Specialty</strong><br />
Please provide a one- to five-sentence description for the website. The description does not need to include your contact information or service areas and should not be written as an advertisement, but rather as a list of your specialty areas and services. (Note that we may modify the description if necessary.)
<br />
<textarea cols="50" name="specialty" rows="8" onblur="InputLengthCheck();" onkeyup="InputLengthCheck();"></textarea>
<br>
<input readonly type="text" name="WordsTyped" size="5"> Words Typed
<br>
<input readonly type="text" name="WordsLeft" size="5"> Words Left
</p>
<p><strong>Please attach a resume, if possible.</strong> <input class="field" type="file" name="attachment" eform="Attachment:file:0:Only upload of text documents are supported:#LIST pdf,txt,doc " /></p>
<p>
<strong>What courses/levels can you teach or tutor?<br />
</strong>
<textarea cols="40" name="courses" rows="3"></textarea></p>
<p><strong>What experience do you have teaching homeschool students?<br />
</strong>
<textarea cols="40" name="experience" rows="3"></textarea></p>
<br /><p><strong>
List any homeschool support group in your area with which you are familiar.<br />
</strong>
<textarea cols="40" name="hsgroups" rows="3"></textarea></p>
<br />
<p> <strong>List any homeschool references you may have, even if they are out of Virginia, along with contact info.<br />
</strong>
<textarea cols="40" name="hsreferences" rows="3"></textarea>
</p>
<p><strong>What are your rates?<br />
</strong>
<textarea cols="40" name="rates" rows="3"></textarea>
</p>
<p><strong>
If you offer any other services, please list them. <br />
</strong>
<textarea cols="40" name="otherservices" rows="3"></textarea>
</p>
</form>
<p>
<strong>Anti-spam Code <br />
</strong>(Please enter the anti-spam code shown below.) </p>
<p><img src="[+verimageurl+]" alt="verification code" border="1"/>
</p>
</p>
{{about_verification}}
<p>
<label accesskey="c" for="vericode">Enter Code Here: </label>
<input type="text" name="vericode" eform="Anti-Spam Code:string:1" size="20" /><span class="red">*</span>
</p>
<input align="middle" name="submit" type="submit" value="Submit Information" /> <input align="right" name="reset" type="reset" value="Clear Form" /> </form>
Here is the included JS file:
<script type="text/javascript" >
/* For additional information about this JavaScript
and how to use it, see the "Displaying Number of Words
Typed Into Form Fields" article, linked from the archives
at from http://willmaster.com/possibilities/archives/
The above note and the copyright line must remain with
this JavaScript source code. Comments below this point
in the code may be removed if desired. */
// Customizing this JavaScript code requires specifying eight values.
// Value One:
// Specify the maximum number of characters the form field
// may contain. If you have no maximum, specify 0 (zero).
var MaximumCharacters = "0";
// Value Two:
// Specify the maximum number of words the form field may
// contain. If you have no maximum, specify 0 (zero).
var MaximumWords = "75";
// Value Three:
// Specify the form's name (provided by the name="_____"
// attribute in the FORM tag).
var FormName = "counselors";
// Value Four:
// Specify the name of the text field being monitored
// (provided by the name="_____" attribute in the
// INPUT or TEXTARE tag).
var TextFieldName = "specialty";
// Value Five:
// Specify the field name where where is to be displayed
// the number of characters the user has typed. Make
// it blank (nothing between the quotation marks) if
// you aren't displaying the number of characters typed.
var CharactersTypedFieldName = "CharsTyped";
// Value Six:
// Specify the field name where where is to be displayed
// the number of characters left that may be typed.
// Make it blank (nothing between the quotation marks)
// if you aren't displaying the number of characters
// left.
var CharactersLeftFieldName = "CharsLeft";
// Value Seven:
// Specify the field name where where is to be displayed
// the number of words the user has typed. Make it
// blank (nothing between the quotation marks) if you
// aren't displaying the number of words typed.
var WordsTypedFieldName = "WordsTyped";
// Value Eight:
// Specify the field name where where is to be displayed
// the number of words left that may be typed. Make it
// blank (nothing between the quotation marks) if you
// aren't displaying the number of words left.
var WordsLeftFieldName = "WordsLeft";
//////////////////////////////////////////////////////
// //
// No modfications are required below this point. //
// //
//////////////////////////////////////////////////////
var WordsMonitor = 0;
var MaxWords = parseInt(MaximumWords);
var MaxChars = parseInt(MaximumCharacters);
var textfield = 'document.' + FormName + '.' + TextFieldName + '.value';
function WordLengthCheck(s,l) {
WordsMonitor = 0;
var f = false;
var ts = new String();
for(var vi = 0; vi < s.length; vi++) {
vs = s.substr(vi,1);
if((vs >= 'A' && vs <= 'Z') || (vs >= 'a' && vs <= 'z') || (vs >= '0' && vs <= '9')) {
if(f == false) {
f = true;
WordsMonitor++;
if((l > 0) && (WordsMonitor > l)) {
s = s.substring(0,ts.length);
vi = s.length;
WordsMonitor--;
}
}
}
else { f = false; }
ts += vs;
}
return s;
} // function WordLengthCheck()
function CharLengthCheck(s,l) {
if(s.length > l) { s = s.substring(0,l); }
return s;
} // function CharLengthCheck()
function InputCharacterLengthCheck() {
if(MaxChars <= 0) { return; }
var currentstring = new String();
eval('currentstring = ' + textfield);
var currentlength = currentstring.length;
eval('currentstring = CharLengthCheck(' + textfield + ',' + MaxChars + ')');
if(CharactersLeftFieldName.length > 0) {
var left = 0;
eval('left = ' + MaxChars + ' - ' + textfield + '.length');
if(left < 0) { left = 0; }
eval('document.' + FormName + '.' + CharactersLeftFieldName + '.value = ' + left);
if(currentstring.length < currentlength) { eval(textfield + ' = currentstring.substring(0)'); }
}
if(CharactersTypedFieldName.length > 0) {
eval('document.' + FormName + '.' + CharactersTypedFieldName + '.value = ' + textfield + '.length');
if(currentstring.length < currentlength) { eval(textfield + ' = currentstring.substring(0)'); }
}
} // function InputCharacterLengthCheck()
function InputWordLengthCheck() {
if(MaxWords <= 0) { return; }
var currentstring = new String();
eval('currentstring = ' + textfield);
var currentlength = currentstring.length;
eval('currentstring = WordLengthCheck(' + textfield + ',' + MaxWords + ')');
if (WordsLeftFieldName.length > 0) {
var left = MaxWords - WordsMonitor;
if(left < 0) { left = 0; }
eval('document.' + FormName + '.' + WordsLeftFieldName + '.value = ' + left);
if(currentstring.length < currentlength) { eval(textfield + ' = currentstring.substring(0)'); }
}
if (WordsTypedFieldName.length > 0) {
eval('document.' + FormName + '.' + WordsTypedFieldName + '.value = ' + WordsMonitor);
if(currentstring.length < currentlength) { eval(textfield + ' = currentstring.substring(0)'); }
}
} // function InputWordLengthCheck()
function InputLengthCheck() {
InputCharacterLengthCheck();
InputWordLengthCheck();
} // function InputLengthCheck()
</script>
Sample page is here:
http://www.heav.org/testing/formtest.html