Web Form Builder help with results -...

User 2292452 Photo


Registered User
10 posts

Ok, now nothing is working again. I thought I had it and then nothing. I don't know what I have done. Here is the code:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="generator" content="CoffeeCup HTML Editor (www.coffeecup.com)">
<meta name="dcterms.created" content="Tue, 21 Oct 2014 04:27:32 GMT">
<meta name="description" content="">
<meta name="keywords" content="">
<title></title>

<style type="text/css">
span.c4 {color: #C60C31; font-size: 150%}
div.c3 {text-align: center}
span.c2 {font-size: 150%}
span.c1 {color: #C60C31}

</style>
</head>
<body>
<form name="radioForm">
<div class="c3"><b><span class="c2">When your home becomes/stays messy or cluttered, do you feel like doing this?<br><br>

<img src="pulling%20out%20hair250.jpg" width="250" height="182" alt="" title=""><br><br>

<span class="c1">Yes <input type="radio" name="q0"> No</span><input type="radio" name="q0"><br><br><br>

Do you need help moving?<br><span class="c1">I can help you with downsizing, combining households, labeling, packaging<br>
and getting your home ready to be shown with a real estate company.</span><br><br>

<img src="downsizing.jpg" width="249" height="102" alt="" title=""><br><br>
<span class="c1">Yes <input type="radio" name="q1"> No</span><input type="radio" name="q1"><br><br><br>

During the holidays, do you have time to do everything that needs to be done?<br><br><img src="todolistxcf.jpg" width="250" height="400" alt="" title=""><br><br>

<span class="c1">Yes <input type="radio" name="q2">No</span><input type="radio" name="q2"><br><br><br>

Do you need your closet or garage cleaned and organized?<br><br><img src="MESSYcloset150.JPG" width="150" height="203" alt=""title="">

<img src="CLEANcloset150.JPG" width="150" height="200" alt="" title=""><br><br><span class="c1">Yes <input type="radio" name="q3"> No</span><input type="radio" name="q3"><br>
<br>
<br>

Do you have documents in your picture folder and pictures in your documents? <span class="c1">Yes <input type="radio" name="q4">No</span> <input type="radio" name="q4"><br>
or Do you need files put in their own folders? <span class="c1">Yes <input type="radio" name="q5">No</span> <input type="radio" name="q5"><br><br><br>

Can you get organized at work while making sure to meet your deadlines?<br><br><img src="deadline250.jpg" width="250" height="348" alt="" title=""><br><br>

<span class="c1">Yes <input type="radio" name="q6">No</span><input type="radio" name="q6"><br><br><br></span></b><span class="c2"><br><br><br></span>

<h2><input type="button" onclick="showAnswers()" value="Check Answers"> <span class="c1">yes: <input type="textbox" name="yes" value="" size="3">
no: <input type="textbox" name="no" value="" size="3"></span></h2></div></form>

<script language="JavaScript" type="text/javascript">

<!--
function showAnswers() {
var yes = 0;
var no = 0;
for (var i=0;i<7;i++) {
if (eval("document.radioForm.q" + i + "[0].checked") == true)
yes++;
if (eval("document.radioForm.q" + i + "[1].checked") == true)
no++;
}
document.radioForm.yes.value = yes;
document.radioForm.no.value = no;
}
//-->
<a href="http://www.coffeecup.com/"> <script src="common/libs_js/jquery-1.4.4.min.js"></script> <script>$(document).ready(function() {
<script src="common/libs_js/jquery-1.4.4.min.js"></script> <script>$(document).ready(function() {
$("input:checkbox").change(function() {
if ($(this).val() == "yes"){
var total= $("input[value=yes]:checked").size();
if(total>2){
alert("Yes it does looks like you need my help.");
}
}if ($(this).val() == "no"){
var total= $("input[value=no]:checked").size();
if(total>2){
alert("It doesn't look like you need my help.");
}
}

});
});</script>Next </a>
</body>
</html>
User 187934 Photo


Senior Advisor
20,186 posts

I changed my script to match you html.
<script src="common/libs_js/jquery-1.4.4.min.js"></script> <script>$(document).ready(function() {
$("input:radio").change(function() {
if ($(this).val() == "Yes"){
var total= $("input[value=Yes]:checked").size();
if(total>2){
alert("Yes it does looks like you need my help.");
}
}if ($(this).val() == "No"){
var total= $("input[value=No]:checked").size();
if(total>2){
alert("It doesn't look like you need my help.");
}
}

});
});</script>
I also prettied mine up to function a little smoother.
http://progrower.coffeecup.com/forms/it … d-my-help/
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2292452 Photo


Registered User
10 posts

Cool!!! Thank you. I will paste it all together again and hopefully I will be able to make it work. THANK YOU I GREATLY APPRECIATE IT!!!!

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.