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

Question

Question

LF 11.0.2311.50564 - Modern form - setFieldValues not working onFieldBlur

asked on December 3, 2024

We just upgrade to LF 11.0.2311.50564 from version 10.xx, and I'm running into a wall with a simple sample code for onFieldBlur/onFiledChange event. Console display 'on blur' and 'on change' text as expected, but nothing is  displayed for fieldId 2 and 4.Any suggestion is appreciated.

==============================

LFForm.onFieldBlur(function(){
  console.log('on blur');
  LLForm.setFieldValues({fieldId:2},"hello");
  LLForm.setFieldValues({fieldId:4}, "there");
}, {fieldId: 3});

LFForm.onFieldChange(function(){
  console.log('on change');
}, {fieldId: 3});

Chrome debugger:

0 0

Answer

SELECTED ANSWER
replied on December 3, 2024 Show version history

It's in the error message, "LLForm is not defined"

Looks like it's just the result of a typo; you have "LL" instead of "LF" on a couple lines.

LLForm.setFieldValues({fieldId:2},"hello");
LLForm.setFieldValues({fieldId:4}, "there");

2 0

Replies

replied on December 8, 2024

Duh ... Haven't have my morning coffee yet smiley

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

Sign in to reply to this post.