Dear All,
I have created a validation rule as below, Status is a dropdown.
1. Status == "Waiting for Approval" && isNullOrEmpty({Self})
2. and(calcStatus=="Waiting for Sponsor Approval",isNullOrEmpty({Self}))
calcStatus is storing dynamic value of dropdown value (Status)
Both are not executing
Also i have custom button click event as below, here i get two times alert and submitting an item.
NWF$('.nf-sponApprove').click(function(){
var scomm = NWF$('#'+varsponDisc).val();
if(scomm == ""){
alert("Please input sponsor comments");
}
if(scomm) {
NWF$('#'+varStatus).val("Sponsor Approved");
NWF$(document).submit();
}
});
Any help would be highly appreciated. Thank you advance.
Regards