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

Question

Question

LFForm Object - What happened to the setElementStyle method?

asked on July 25
// Assuming you want to change the background color of the form to light blue
const newBackgroundColor = 'lightblue';

// This example uses the LFForm object to manipulate the form's body style
// Please verify the available methods in the LFForm documentation
LFForm.setElementStyle('body', {
    backgroundColor: newBackgroundColor
});

0 0

Replies

replied on July 25

Chad, I think this behavior is explained by this minor detail in the documentation:

The LFForm object provides a global interface for accessing Laserfiche form elements

The body of the page/entire form is not a form element, so it can't be accessed by the LFForm object. You would only be able to access properties of elements within the form.

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

Sign in to reply to this post.