Forums

[Solved] Form results not emailed

absolutelytrue 09 Oct, 2008
I have been working on this for a long time now and just can't figure out where I went wrong. I would appreciate it very much if someone could help me out.

Since this client's form is so long, Joomla times out on me while I try to do it in the form wizard. So I had to do parts at a time and piece the whole thing together at the end. The form seems to submit without any errors, but it does not email the results. In General I have the Email the results? value set to yes and the form method is set to post.

Here is my form code:

<div  class="form_item"><div class="form_element cf_text"><span class="cf_text">Fill out this form as completely as possible and Grand South Investments will contact you about buying your home.</span></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Name</label><input class="cf_inputbox" maxlength="150" size="30" id="text_1" name="name" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Address</label><input class="cf_inputbox" maxlength="150" size="30" id="text_2" name="address" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">City</label><input class="cf_inputbox" maxlength="150" size="30" id="text_3" name="city" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">State</label><input class="cf_inputbox" maxlength="150" size="30" id="text_4" name="state" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Zip Code</label><input class="cf_inputbox" maxlength="150" size="30" id="text_5" name="zip" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Home Phone</label><input class="cf_inputbox" maxlength="150" size="30" id="text_6" name="phone" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Cell Phone</label><input class="cf_inputbox" maxlength="150" size="30" id="text_7" name="cell" type="text"></div>
<div class="clear"> </div>
</div>
  
<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">E-Mail</label><input class="cf_inputbox required validate-email" maxlength="150" size="30" id="text_8" name="email" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Best Time to Call?</label><input class="cf_inputbox" maxlength="150" size="30" id="text_9" name="besttime" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Why Are You Selling?</label><input class="cf_inputbox" maxlength="150" size="30" id="text_10" name="why" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">When Would You Like to Close?</label><input class="cf_inputbox" maxlength="150" size="30" id="text_11" name="when" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_checkbox"><label class="cf_label">Is the house listed with a real estate company? </label><div class="float_left"><input value="yes" class="radio" id="yes" name="listedyes" type="checkbox"><label for="yes" class="check_label">Yes</label><br><input value="no" class="radio" id="no" name="listedno" type="checkbox"><label for="no" class="check_label">No</label><br></div></div><div class="clear"> </div></div>


<div  class="form_item"><div class="form_element cf_checkbox"><label class="cf_label">Is the house currently vacant?</label><div class="float_left"><input value="yes" class="radio" id="yes" name="vacantyes" type="checkbox"><label for="yes" class="check_label">Yes</label><br><input value="no" class="radio" id="no" name="vacantno" type="checkbox"><label for="no" class="check_label">No</label><br></div></div><div class="clear"> </div></div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">How Many Bedrooms?</label><input class="cf_inputbox" maxlength="150" size="30" id="text_12" name="bedrooms" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">How Many Bathrooms?</label><input class="cf_inputbox" maxlength="150" size="30" id="text_13" name="bathrooms" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">What is the Approximate Square Footage?</label><input class="cf_inputbox" maxlength="150" size="30" id="text_14" name="sqft" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Type of Construction?</label><input class="cf_inputbox" maxlength="150" size="30" id="text_15" name="type" type="text"><a onclick="return false;" class="tooltiplink"><img  src="components/com_chronocontact/css/images/tooltip.png" class="tooltipimg" width="16" border="0" height="16"></a><div  class="tooltipdiv">Type of Construction? :: brick, vinyl siding, absetos, etc.</div></div>
<div class="clear"> </div></div>

<div  class="form_item"><div class="form_element cf_checkbox"><label class="cf_label">Does the House Need Repairs?</label><div class="float_left"><input value="yes" class="radio" id="yes" name="repairsyes" type="checkbox"><label for="yes" class="check_label">Yes</label><br><input value="no" class="radio" id="no" name="repairsno" type="checkbox"><label for="no" class="check_label">No</label><br></div></div><div class="clear"> </div></div>

<div  class="form_item"><div class="form_element cf_textarea"><label class="cf_label">If yes, please describe the repairs:</label><textarea class="cf_inputbox" rows="6" id="text_16" cols="30" name="repairs"></textarea></div><div class="clear"> </div></div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">How Much Are You Asking for the House?</label><input class="cf_inputbox" maxlength="150" size="30" id="text_17" name="asking" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">How Much Do You Think the House Would Appraise For?</label><input class="cf_inputbox" maxlength="150" size="30" id="text_18" name="appraise" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_checkbox"><label class="cf_label">Are You Offering Any Terms?</label><div class="float_left"><input value="yes" class="radio" id="yes" name="termsyes" type="checkbox"><label for="yes" class="check_label">Yes</label><br><input value="no" class="radio" id="no" name="termsno" type="checkbox"><label for="no" class="check_label">No</label><br></div></div><div class="clear"> </div></div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">What Is Your Mortgage Balance?</label><input class="cf_inputbox" maxlength="150" size="30" id="text_19" name="balance" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">How Much Is Your Monthly Mortgage Payment?</label><input class="cf_inputbox" maxlength="150" size="30" id="text_19" name="payment" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_checkbox"><label class="cf_label">Does That Include Taxes and Insurance?</label><div class="float_left"><input value="yes" class="radio" id="yes" name="taxinsyes" type="checkbox"><label for="yes" class="check_label">Yes</label><br><input value="no" class="radio" id="no" name="taxinsno" type="checkbox"><label for="no" class="check_label">No</label><br></div></div><div class="clear"> </div></div>

<div  class="form_item"><div class="form_element cf_checkbox"><label class="cf_label">Can You Sell Us Your Home For the Balance of Your Mortgage?</label><div class="float_left"><input value="yes" class="radio" id="yes" name="sellbalyes" type="checkbox"><label for="yes" class="check_label">Yes</label><br><input value="no" class="radio" id="no" name="sellbalno" type="checkbox"><label for="no" class="check_label">No</label><br></div></div><div class="clear"> </div></div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">If No, How Much Cash Do You Need Right Now?</label><input class="cf_inputbox" maxlength="150" size="30" id="text_20" name="cashnow" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">If You Were To Receive Some Cash Now, How Much Would You Need Later To Complete the Sale?</label><input class="cf_inputbox" maxlength="150" size="30" id="text_21" name="cashlater" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_checkbox"><label class="cf_label">Would You Like to Hear About Other Creative Ways We Could Buy Your House?</label><div class="float_left"><input value="yes" class="radio" id="yes" name="hearmoreyes" type="checkbox"><label for="yes" class="check_label">Yes</label><br><input value="no" class="radio" id="no" name="hearmoreno" type="checkbox"><label for="no" class="check_label">No</label><br></div></div><div class="clear"> </div></div>

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">How Did You Hear About Grand South Investments?</label><input class="cf_inputbox" maxlength="150" size="30" id="text_21" name="howhear" type="text"></div>
<div class="clear"> </div>
</div>

<div  class="form_item"><div class="form_element cf_button"><input value="Submit" name="sellyourhome" type="submit"></div><div class="clear"> </div></div>


And here is my email template:

<form id="sellyourhome" method="post">
<p>Fill out this form as completely as possible and Grand South Investments will contact you about buying your home.</p>
<p><label>Name     <span>{Name}</span> </label></p>
<p><label>Address     <span>{Address}</span> </label></p>
<p><label>City     <span>{City}</span> </label></p>
<p><label>State     <span>{State}</span> </label></p>
<p><label>Zip Code     <span>{Zip Code}</span> </label></p>
<p><label>Home Phone     <span>{Home Phone}</span> </label></p>
<p><label>Cell Phone     <span>{Cell Phone}</span> </label></p>
<p><label>E-Mail     <span>{Email}</span> </label></p>
<p><label>Best time to call?     <span>{Best time to call}</span> </label></p>
<p><label>Why are you selling your home?     <span>{Why are you selling}</span> </label></p>
<p><label>When would you like to close?     <span>{When would you like to close}</span> </label></p>
<p>Is the house listed with a real estate company?      <label> <span>{listedyes}</span> Yes</label> <label> <span>{listedno}</span> No</label></p>
<p>Is the house currently vacant?      <label> <span>{vacantyes}</span> Yes</label> <label> <span>{vacantno}</span> No</label></p>
<p><label>How many bedrooms?     <span>{How many bedrooms}</span> </label></p>
<p><label>How many bathrooms?     <span>{How many bathrooms}</span> </label></p>
<p><label>What is the approximate square footage?     <span>{Approximate square footage}</span> </label></p>
<p><label>What is the type of construction? (brick, vinyl siding, asbestos, etc.)     <span>{type of construction}</span> </label></p>
<p>Does the house need repairs?      <label> <span>{repairsyes}</span> Yes</label> <label> <span>{repairsno}</span> No</label></p>
<p><label>If yes, please describe the repairs:<br /> <span>{describe repairs}</span> </label></p>
<p><label>How much are you asking for the house?     <span>{asking price}</span> </label></p>
<p><label>How much so you think the house would appraise for?     <span>{appraisal value}</span> </label></p>
<p>Are you offering any terms?      <label> <span>{termsyes}</span> Yes</label> <label> <span>{termsno}</span> No</label></p>
<p><label>What is your mortgage balance?     <span>{loan balance}</span> </label></p>
<p><label>How much is your monthly payment?     <span>{monthly payment}</span> </label></p>
<p>Does that include taxes and insurance?      <label> <span>{includeyes}</span> Yes</label> <label> <span>{includeno}</span> No</label></p>
<p>Can you sell us your house for the balance of your mortgage?      <label> <span>{sellforbalanceyes}</span> Yes</label> <label> <span>{sellforbalanceno}</span> No</label></p>
<p><label>If no, how much cash do you need right now?     <span>{cash now}</span> </label></p>
<p><label>If you were to receive some cash now, how much would you need later to complete the sale?     <span>{cash later}</span> </label></p>
<p>Would you like to hear about other creative ways that we could buy your house?      <label> <span>{hearmoreyes}</span> Yes</label> <label> <span>{hearmoreno}</span> No</label></p>
<p><label>How did you hear about Grand South Investments?     <span>{how did you hear}</span> </label></p>
<p><label> </label></p>
</form>


The form is online at http://grandsouthinvestments.com/we-buy-houses

Thanks in advance for any help/advice.
Max_admin 09 Oct, 2008
Hi absolutelytrue,

#1- remove the <form...> </form> tags from your email template!
#2- increase the joomla session time limit in the global config so it doesn't time out!
#3- does it say enabled:1 at the forms management page ? you may want to check the email setup tutorial at the downloads> Chronoforms tutorial to see the necessary steps for an email to be enabled!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
absolutelytrue 09 Oct, 2008
Thanks Max, I got the emails coming to me now.. however.. the emails don't include the responses on the form. I just filled out the form completely and got this in the mail:



Fill out this form as completely as possible and Grand South Investments will contact you about buying your home.

Name {Name}

Address {Address}

City {City}

State {State}

Zip Code {Zip Code}

Home Phone {Home Phone}

Cell Phone {Cell Phone}

E-Mail {Email}

Best time to call? {Best time to call}

Why are you selling your home? {Why are you selling}

When would you like to close? {When would you like to close}

Is the house listed with a real estate company? Yes No

Is the house currently vacant? Yes No

How many bedrooms? {How many bedrooms}

How many bathrooms? {How many bathrooms}

What is the approximate square footage? {Approximate square footage}

What is the type of construction? (brick, vinyl siding, asbestos, etc.) {type of construction}

Does the house need repairs? Yes No

If yes, please describe the repairs:
{describe repairs}

How much are you asking for the house? {asking price}

How much so you think the house would appraise for? {appraisal value}

Are you offering any terms? Yes No

What is your mortgage balance? {loan balance}

How much is your monthly payment? {monthly payment}

Does that include taxes and insurance? {includeyes} Yes {includeno} No

Can you sell us your house for the balance of your mortgage? {sellforbalanceyes} Yes {sellforbalanceno} No

If no, how much cash do you need right now? {cash now}

If you were to receive some cash now, how much would you need later to complete the sale? {cash later}

Would you like to hear about other creative ways that we could buy your house? Yes No

How did you hear about Grand South Investments? {how did you hear}



Submitted by 68.209.214.193
absolutelytrue 09 Oct, 2008
Got it working now. The values in my email template were all wrong, obviously reflecting an earlier version of the form I had been working with.

Thanks for the help!
Max_admin 09 Oct, 2008
Great, for everybody, the template {fieldname} formula should has exactly the field name as its in the form HTML itself!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.