Forum Discussion
EOMDevelepors
7 years agoQrew Captain
I figured this out:
I entered these lines of code after the prompt line:
if (description == null || description == "") {
alert("You did not enter a description I will cancel this Time Out.");
Return;
}
This will alert and cancel the rest of the code if the user clicks cancel or leaves it blank and clicks ok.
I hope this can help others interested in implementing this in their apps.
I entered these lines of code after the prompt line:
if (description == null || description == "") {
alert("You did not enter a description I will cancel this Time Out.");
Return;
}
This will alert and cancel the rest of the code if the user clicks cancel or leaves it blank and clicks ok.
I hope this can help others interested in implementing this in their apps.