- Fri Oct 02, 2015 6:55 am
#784070
Dear All,
Can somebody please check my syntax.
I have 2 dropdowns (They just list years EG 2002, 2003). The first dropdown is when the person started and the second is completion. All I want is pop up a message that completion cannot be earlier than start and then put a red border and let the user re-select
I am sure its something simple.
Thanks
Aza
Can somebody please check my syntax.
I have 2 dropdowns (They just list years EG 2002, 2003). The first dropdown is when the person started and the second is completion. All I want is pop up a message that completion cannot be earlier than start and then put a red border and let the user re-select
Code: Select all
The evaluation does not seem to work. Please help.getField("yrComp").onchange = function(){
if ((getField("yrComp").value < getField("yrReg").value) == true) {
msgBox(" Completion cannot be earlier than Start", "alert", yrComp)
getField("yrComp").style.borderColor="RED";
}
}
I am sure its something simple.
Thanks
Aza