You are viewing limited content. For full access, please sign in.

Question

Question

Possible New Designer Javascript Bug When Using onFieldChange and onFieldBlur

asked on February 27, 2023 Show version history

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?

1 0

Answer

SELECTED ANSWER
replied on February 27, 2023

It is a bug, the bug ID is 415845, we will look into fix it for next release.

0 0
replied on February 28, 2023

Thank you for confirming.

0 0

Replies

replied on July 19, 2023

Hi, This bug has been fixed on Forms 11 Update 4.

You can see other changes from:

List of Changes for Laserfiche Forms 11 Update 4 - Knowledge Base

Get Forms 11 Update 4 from Laserfiche 11 package:

Software versions and fixes included in the Laserfiche 11 Download Package - Knowledge Base

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.