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

Question

Question

LFForm Object - Why is findFieldsByClassName returning a null array?

asked on July 25

This code returns null, but it seems to me that it should return an array of 1 object.

LFForm.changeFieldSettings( {fieldId: 5}, {content: '<a href="https://www.google.com" class="myLink">Click Here</a>'} );
    console.log(LFForm.findFieldsByClassName("myLink"));

 

0 0

Answer

SELECTED ANSWER
replied on July 27

LFForm.findFieldsByClassName would find field with given classname as the "CSS Classes" you defined on the forms layout page.

It would not search the page for all elements with given classname.

0 0
replied on July 28 Show version history

Oh ok, this is a link I just created and wanted to get access to what I just made. Seems like we can not access objects that we add to the form.

0 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.