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

Question

Question

set focus new forms designer

asked on April 20, 2023

Is there a way to set the focus of the current form to a particular field?

I've tried the basic stuff, but continue to receive errors on the console.

 LFForm.findFieldsByVariableName('OtherNames').fieldId.trigger('focus');

 LFForm.findFieldsByVariableName('OtherNames').fieldId.focus());

 LFForm.findFieldsByVariableName('OtherNames').focus();

 

The error I am receiving is: 'Uncaught TypeError: Cannot read properties of undefined ...'

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on April 20, 2023

There is currently not a focus event that can be triggered through the layout designer LFForm API. We are actively exploring expanding that API to contain more features and this is on that list! Thank you for reporting it

2 0

Replies

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

Sign in to reply to this post.