Hello Sir/ Madam
I have got a form named "Get a Quote" in my website. The form has a radio button field which has values like "One Way", "Round Trip", "Multicity". It also has date fields like "Departure Date" and Return Date". I want the form in such a way that when the user clicks on "One way " option the "Return Date" field should get disabled and if the user selects "Round Trip" or "Multicity" then both the date fields should be enabled. I have return the below code but it is making no difference can you help me with the same. $w.onReady(function () {
if( $w("#radioGroup1").value === "Option1" )
{
$w("#datePicker2").disable();
}
else {
$w("#datePicker1").enable();
$w("#datePicker2").enable();
}
});
It would be really great of you if you help me with the same as soon as possible as i have got a deadline to solve the same. Thanking you in advance
You will need an onClick() or an onChange() event handler to handle the user's choice.