Dear Nintex community
I am starting my adventure with Nintex, JS and jQuery.
I've spent alredy few hours trying to find solution this but seems that I still missing the concept...
So what I have:
1. List on sharepoint with column "State"

2. In forms I've assigned as follows:

3. I've written this code in CustomJS field:
NWF.FormFiller.Events.RegisterAfterReady(function(){
var Sstate = NWF$('#' + varState);
console.log("Sstate= " + Sstate + " Sstate.val()= " +Sstate.val()+ " Sstate.text()= " + Sstate.text() + " varState= " + varState);
});
4. and this is what I received in console log when I am opening the form:

Sstate= [object Object] Sstate.val()= undefined Sstate.text()= varState= ctl00_ctl54_g_2e434ee3_cc48_4bca_87f0_294c48339002_ctl00_ListForm1_formFiller_FormView_ctl38_cd490519_949d_48e6_90af_d0f96aacd0a9
What the hell I am doing wrong? :) Why I cant see nowhere in console log that the value of field State is "NH"? Please help! :)



