Find Jobs
Hire Freelancers

A simple Javascript code

$30-5000 USD

Completed
Posted almost 14 years ago

$30-5000 USD

Paid on delivery
I have a page with a dropdown and two textboxes. The javascript code checks to make sure that if the dropdown says? **Appointment Made** or**? Patient Scheduled,** the appropriate text boxes will have dates in them. When the page loads and the drop down shows either of the two above, all works fine but when I change the drop down the script does not work. I have put an alert statament after the third line and do see that when I make a change to patient_status, the variable a gets updated but for some reason the script fails and does not prompt. For example if the page loads and Appointment Made is selected, the script will prompt, but if I change the drop down to Patient Scheduled, it will not prompt. Thank You. <SCRIPT LANGUAGE="JavaScript"> function calculate() { a= [login to view URL]("EditRecordpatient_status").value; b= [login to view URL]("EditRecordSurgery_Date").value; c= [login to view URL]("EditRecordConsult_Date").value; alert(a); alert(b); alert(c); if (a=="Appointment Made" && c=="") { alert('You have scheduled a patient for consultation but the consult date is missing!'); return false; } else if (a=="Patient Scheduled" && b=="") { alert('You have scheduled a patient for surgery but the surgery date is missing!'); return false; } else { return true; } } [login to view URL]("Mod0EditRecord").onclick=calculate; </SCRIPT>
Project ID: 3304396

About the project

11 proposals
Remote project
Active 14 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$1 USD in 14 days
5.0 (10 reviews)
2.4
2.4
11 freelancers are bidding on average $21 USD for this job
User Avatar
See private message.
$17 USD in 14 days
5.0 (211 reviews)
6.6
6.6
User Avatar
See private message.
$25.50 USD in 14 days
4.9 (129 reviews)
6.6
6.6
User Avatar
See private message.
$21.25 USD in 14 days
4.9 (168 reviews)
6.6
6.6
User Avatar
See private message.
$10.20 USD in 14 days
4.7 (100 reviews)
6.4
6.4
User Avatar
See private message.
$12.75 USD in 14 days
5.0 (42 reviews)
5.7
5.7
User Avatar
See private message.
$12.75 USD in 14 days
4.7 (152 reviews)
5.6
5.6
User Avatar
See private message.
$8.50 USD in 14 days
5.0 (5 reviews)
3.7
3.7
User Avatar
See private message.
$11.90 USD in 14 days
4.5 (2 reviews)
0.8
0.8
User Avatar
See private message.
$68 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$42.50 USD in 14 days
0.0 (1 review)
0.0
0.0

About the client

Flag of UNITED STATES
Glendale, United States
5.0
64
Payment method verified
Member since May 12, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.