Version 11.0.2212.30907
Was trying out some different code combinations when reviewing another post here on the LFAnswers site (https://answers.laserfiche.com/questions/206512/What-is-wrong-with-my-jquery-in-Forms-Is-there-something-different-for-Cloud-programming#repliestomain)
I wanted to find some code that I could compare differences between the onFieldChange event of the LFForm object and the onFieldBlur event .
I wrote some simple code to try to identify exactly when the change event was happening and when the blur event was happening. And it's not behaving correctly.
This is the code I wrote:
var myFields = LFForm.findFieldsByClassName('test'); myFields.forEach(function (arrayItem) { LFForm.onFieldChange(function(){ console.log('change'); },arrayItem); LFForm.onFieldBlur(function(){ console.log('blur'); },arrayItem); });
Based on the explanation from the other post regarding how the change event works with each keypress, I'm expecting the console to say "change" several times followed by "blur". But what's happening is that it's just saying "blur" a bunch of times.
It seems to work fine when I apply either the code for the change or the code for the blur, but when I do both it runs the blur code for either changes or blurs.
Is this a known issue?