Dear Team,
I have calculated value to retrieve current user display name using below
given client id vCurrUser and getting that value using below
var varCurrUser = NWF$('#' + vCurrUser).val();
but at runtime varCurrUser is null and yes after loading the page it has a value
My complete code as below
NWF.FormFiller.Events.RegisterAfterReady(function () {
var varCurrUser = NWF$('#' + vCurrUser).val();
if(vStatus == "Waiting for Sponsor Approval" && projSponsor == varCurrUser) { // here varCurrUser has null it is not executing if condition.
NWF$('#'+varsponDisc).show();
NWF$('.nf-spComm').show();
NWF$('.nf-sponReject').show();
NWF$('.nf-sponApprove').show();
NWF$('.nf-vsCancel').show();
NWF$('.nf-qualityReview').hide();
}
});
I am also trying to achieve the above using the rule as below
and((Status!="Sponsor Approved" || Status !="New" || Status != "Sponsor Rejected" || Status != "Waiting for Quality Team Review" || Status != "Project Identified as Transformation Initiative" || Status != "Approved By Quality" || Status != "Rejected By Quality") && ProjectSponsorName != userProfileLookup(Current User,"PreferredName"))
Any help would be highly appreciated.