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

Question

Question

Rename Comments box on Forms Designer

asked on February 8

Hello

 

According to the documentation here: Customizing the User Task Comments Box | Laserfiche Forms the comments box label can be updated to rename it when using Classic Forms. 

Is there any way to do the same for the new Forms Designer?  

 

 

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on February 15

If all you want to do is rename it, you can use some CSS

The following makes the original label hidden, and then adds text via content and shifts it left to be in line with the original label
 

.form-container #comment-container label {
    visibility: hidden;
}

.form-container #comment-container label::after {
    content: "Custom Comment Box";
    visibility: visible;
    margin-left: -5.5em;
}

 

2 0

Replies

replied on February 8

I do not believe it is possible at this time.

I do not see any native options to edit the comment box label on the Form Layout, and Javascript in the new designer runs within a sandboxed iFrame so it cannot directly manipulate components of the window/document/form like the Classic Designer could.  This page in the Help Documentation covers the options available in the LFForm interface that is used for most of the Javascript functionality in the new designer.  Editing the comments isn't mentioned in the options that can be changed using the LFForm.changeFormSettings function - and in fact, the word "comment" doesn't appear anywhere on the page based on a Ctrl+F search.

Personally, I hide the default comment box and use form fields instead.

1 0
replied on February 13

We will take a look at making this accessible through JS and form settings! In general though @████████ is right though, if you need any additional customizations on the comment box you should just build your own. That being said, JS would let you link the two so you can still see comments in the action history.

2 0
replied on February 14

Thanks Matthew and Zachary

 

Hiding the comments and using a form field was my suggestion too but they wanted to have the comments in the action history saved with the completed form.

 

 

1 0
APPROVED ANSWER SELECTED ANSWER
replied on February 15

If all you want to do is rename it, you can use some CSS

The following makes the original label hidden, and then adds text via content and shifts it left to be in line with the original label
 

.form-container #comment-container label {
    visibility: hidden;
}

.form-container #comment-container label::after {
    content: "Custom Comment Box";
    visibility: visible;
    margin-left: -5.5em;
}

 

2 0
replied on February 15

That works great!  Thank you!

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

Sign in to reply to this post.