I have a list using Nintex Forms in which I added custom JavaScript to apply today's date to a few date fields when a lookup selector chooses specific status values. For some reason, the script has stopped working. Nothing changed in the code, but nothing happens to any of the date fields when the status changes, no matter which one the user changes to. The only thing I can think of that has happened between then and now is an update to the latest version of forms.
This is the code for the form that was working previously and now is not. Does anyone know of any issues post the latest updates?
NWF$(document).ready(function()
NWF$('#'+jsRequestStatus).change(function()
{
fnSetDates();
});
});
function fnSetDates()
{
var dropdownvalue = NWF$('#'+jsRequestStatus).val();
var dateCompleted= NWF$('#'+jsDateCompleted).val();
switch(dropdownvalue) {
case '1;#Submitted':
NWF$('#' + jsDateCompleted).val('');
NWF$('#' + jsDateAccepted).val('');
NWF$('#' + jsDateNotified).val('');
NWF$('#' + jsPlannedReleaseDate).val('');
NWF$('#' + jsActualReleaseDate).val('');
break;
case '2;#In Review':
NWF$('#' + jsDateCompleted).val('');
NWF$('#' + jsDateAccepted).val('');
NWF$('#' + jsDateNotified).val('');
NWF$('#' + jsPlannedReleaseDate).val('');
NWF$('#' + jsActualReleaseDate).val('');
break;
case '3;#Completed':
NWF$('#' + jsDateCompleted).val(Current Date);
if (fn-Not(QPOS)){
NWF$('#' + jsDateNotified).val('');
}
break;
case '4;#Cancelled':
NWF$('#' + jsDateCompleted).val(Current Date);
NWF$('#' + jsDateAccepted).val('');
if (fn-Not(QPOS)){
NWF$('#' + jsDateNotified).val('');
}
break;
case '5;#Hold':
NWF$('#' + jsDateCompleted).val('');
NWF$('#' + jsDateAccepted).val('');
NWF$('#' + jsDateNotified).val('');
NWF$('#' + jsPlannedReleaseDate).val('');
NWF$('#' + jsActualReleaseDate).val('');
break;
case '6;#QPOS':
NWF$('#' + jsDateNotified).val(Current Date);
NWF$('#' + jsDateAccepted).val('');
NWF$('#' + jsDateCompleted).val('');
NWF$('#' + jsPlannedReleaseDate).val('');
NWF$('#' + jsActualReleaseDate).val('');
break;
}
}