Hi Rouven Bilgeri,
took longer time to solve this problem than I anticipated, but after I traced the root cause it was such a simple thing to fix
I assume you are setting your text field which supposed to serve ur list view control in the Jquery page load event. I noticed that when we use look up function on the Nintex form it is triggering page load event also hence re-executing everything that we write in ready function. To prevent that infinite loop all I had to do was put extra validation of checking if the control is actually empty or not. Ola the problem solved no more infinite refresh issue.
this is how I re-wrote your logic
NWF.FormFiller.Events.RegisterAfterReady(function () {
var _Title = NWF$("#" + varTitle)
if(_Title.val()=="")
{
_Title.val("ENT");
_Title.triggerHandler("change");
}
});
I understand that you are setting this field on calculated field change event, event there you may have to add some extra logic to not reset again and again like keeping copy of it in a hidden field and checking etc.
I hope this helps you in solving your project.
Dear Jaya Borra,
thanks a lot for your input - you guided me into the right direction.
I could solve my problem with a simple condition too.
function UpdateTextBox(myValue){ if(NWF$('#'+SpecNrFilterTextBox).val() != myValue){ NWF$('#'+SpecNrFilterTextBox).val(myValue); NWF$('#'+SpecNrFilterTextBox).trigger("change"); return;}} |
|
So now it does only trigger "change" if the value is not already the expected one.
Best regards,
Rubi
Thanks so much for this post, Rubi! This is the solution I was looking for.
Kind regards,
Yvette