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?
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?
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; }
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.
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.
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.
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; }
That works great! Thank you!