Very new to Javascript - I have searched but found only partial answers to my issue.
I have a YES/NO option set on a CRM entity. When the user clicks YES, I want a confirmation prompt to appear with OK/CANCEL confirmation. This part works fine, but I also want the option set to return to NO if the user clicks CANCEL. I cannot figure this part out.
My code below - please could you indicate where the additional code should go which returns the option set back to NO on a CANCEL click? Thanks so much for assistance:
function new_submitforapproval_onchange ()
{
var approval = confirm("confirm message here");
if (approval)
{
alert("ok message here");
}
else
{
alert("cancel message here");
}
}
alert("cancel message here"):
– Guido Preite