Hi Folks,
In Nintex Forms, I am having an issue with a comparison operator. It seems like is should be pretty straight forward.
I have a button that when clicked, puts the current user's preferred name into a text control (jsvar_518_QMName). This should only happen when a choice control (jsvar_FormNomen) has the text value "518" selected.
When "518" is the selected value and the button is clicked, the first code segment (==) below does not put the current user name in the text control as expected but the second segment (==) does put the current user name in the text control. This seems to tell me that the code works but it is not reading the choice selection. Does anyone know what the issue may be?
if (jsvar_FormNomen == "518") {
NWF$('#'+ jsvar_518_QMName).val(NWF$('#'+ jsvar_CurUserPreferredName_CAL).val() +" (Current User)");
}
//***********************************************
if (jsvar_FormNomen != "518") {
NWF$('#'+ jsvar_518_QMName).val(NWF$('#'+ jsvar_CurUserPreferredName_CAL).val() +" (Current User)");
}
Thanks and Regards,
Patrick Kelligan