Hi All,
I’m quite confused about this and dont know how to make this work. I want to put mandatory fields in the form and wanna show pop ups upon clicking the Submit button.
Here is the code. Can anyone please help me. It will be greatly appriciated.
on(release){
if (pickDateText1 != undefined && pickTimeText1 != undefined && dropDateText1 != undefined && dropTimeText1 != undefined && vehicleTypeText1 != undefined && pickLocationText1 != undefined && dropLocationText1 != undefined && name != undefined && email != undefined && phone != undefined && newslettertext1 != undefined)
{
import mx.controls.Alert;
myClickHandler = function (evt){
if (evt.detail == Alert.OK){
}
}
Alert.show(“To help us server you better, Please fill in all the Mandatory Fields. Thank you.”, “Titans Vehichle Inquiry Alert”, Alert.OK);
}
else{
loadVariablesNum (“reservation.php”, 0, “POST”);
myClickHandler = function (evt){
if (evt.detail == Alert.OK){
}
}
Alert.show(“Thank you very much. You inquiry has been sent.”, “Titans Vehichle Inquiry Alert”, Alert.OK);
}
}
cheers