Home › Forums › Tucson – Responsive HTML5 Template › Message Sent Response
- This topic has 3 replies, 2 voices, and was last updated 3 years, 2 months ago by
Support. This post has been viewed 1587 times
-
AuthorPosts
-
November 7, 2021 at 5:27 am #10039707
genoMU69
ParticipantHello,
I was unable to get the advanced form to work by editing the code per previous instruction. Instead, I used the basic form and added the form items I needed (dropdown/radio buttons). I was able to get the form to work this way. The issue I am having now is instead of the “message sent succesfully” message, when the form is filled out, it takes me to a JSON page. The form goes through, but I cannot figure out how to get the regular “message sent” response. Any help would be appreciated.code below:
<form id=”contactForm” action=”php/contact-form-customer.php” method=”POST”>
<input type=”hidden” value=”true” name=”emailSent” id=”emailSent”>
<div class=”row”>
<div class=”form-group”>
<div class=”col-md-6″>
<label>Your name *</label>
<input type=”text” value=”” data-msg-required=”Please enter your name.” maxlength=”100″ class=”form-control” name=”name” id=”name” required>
</div>
<div class=”col-md-6″>
<label>Your email address *</label>
<input type=”email” value=”” data-msg-required=”Please enter your email address.” data-msg-email=”Please enter a valid email address.” maxlength=”100″ class=”form-control” name=”email” id=”email” required>
</div></div>
</div><div class=”row”>
<div class=”form-group”>
<div class=”col-md-12″>
<label>Tell us how we can help:</label>
<select data-msg-required=”Please enter the subject.” class=”form-control” name=”subject” id=”subject” required>
<option value=””></option>
<option value=”Realtor to help me buy a home”>Realtor to help me buy a home</option>
<option value=”Realtor to help me sell my home”>Realtor to help me sell my home</option>
<option value=”Realtor for commercial property purchase/sell”>Realtor for commercial property purchase/sell</option>
<option value=”Lender to assist me with pre-approval”>Lender to assist me with pre-approval</option>
</select>
</div>
</div>
</div><div class=”col-md-6″>
<div class=”row”>
<div class=”col-md-12″>
<label>What is your credit scrore?</label>
</div>
</div>
<div class=”row”>
<div class=”col-md-12″>
<div class=”radio-group” data-msg-required=”Please select one option.”>
<label class=”radio-inline”>
<input type=”radio” name=”radios” id=”inlineRadio1″ value=”Credit: 750-799″> 750-799
</label>
<label class=”radio-inline”>
<input type=”radio” name=”radios” id=”inlineRadio2″ value=”Credit: 640-749″> 640-749
</label>
<label class=”radio-inline”>
<input type=”radio” name=”radios” id=”inlineRadio3″ value=”Credit: 580-620″> 580-620
</label>
<label class=”radio-inline”>
<input type=”radio” name=”radios” id=”inlineRadio2″ value=”Credit: 579-below”> 579-below
</label>
<label class=”radio-inline”>
<input type=”radio” name=”radios” id=”inlineRadio2″ value=”Credit: I don’t know”> I don’t know
</label></div>
</div>
</div>
</div><div class=”col-md-6″>
<div class=”row”>
<div class=”col-md-12″>
<label>Are you interested in home insurance?</label></div>
</div>
<div class=”row”>
<div class=”col-md-12″>
<div class=”radio-group” data-msg-required=”Please select one option.”>
<label class=”radio-inline”>
<input type=”radio” name=”radios2″ id=”inlineRadio1″ value=”Insurance: Yes”> Yes
</label>
<label class=”radio-inline”>
<input type=”radio” name=”radios2″ id=”inlineRadio2″ value=”Insurance: No”> No
</label></div>
</div>
</div>
</div><div class=”row”>
</div>
<div class=”row”>
<div class=”form-group”>
<div class=”col-md-12″>
<label>Please tell us about any outstanding debts and/or Bankruptcies (include dates) *</label>
<textarea maxlength=”5000″ data-msg-required=”Please enter your message.” rows=”10″ class=”form-control” name=”message” id=”message” required></textarea>
</div>
</div>
</div>
<div class=”row”></div>
<div class=”row”>
<div class=”col-md-12″>
<hr>
</div>
</div>
<div class=”row”>
<div class=”col-md-12″>
<input type=”submit” value=”Send Message” class=”btn-primary btn-lg” data-loading-text=”Loading…”> <br><br>
</div>
</div> </form>
November 8, 2021 at 11:29 am #10039714Support
KeymasterHello, please make sure you add the script file js/views/view.contact.js in the page. Also, check that file to see exactly how the contact is sent. It uses a ajax request to send the data to the PHP page.
Kind Regards.
November 18, 2021 at 2:46 am #10039765genoMU69
ParticipantI have added the script file to the page:
js/views/view.contact.jsThe form still goes to the JSON message after being successfully sent.
The send method is POST. I do not see any ajax code
There are two includes that are in the advanced form php file:
captcha and autoloadI am not using a captcha.
please advise.
Thank you
November 18, 2021 at 10:46 pm #10039767Support
KeymasterThis reply has been marked as private. -
AuthorPosts
This topic is marked as "RESOLVED" and can not rceive new replies.