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

Question

Question

Hiding the built-in Comment box for Forms

asked on August 12, 2014

 

I am looking to hide the comment box so that I can add my own based on field rule look up. I am not familiar with CSS or JavaScript, any help is greatly appreciated.  Thanks.

 

1 0

Answer

SELECTED ANSWER
replied on August 12, 2014 Show version history

pretty sure it's like this: 

.approval-wrap > p:nth-child(1){
  display:none;
}
#comments {
  display:none;
}

EDIT:

or as Eric points out,

.approval-wrap > p, #comments {
  display:none;
}
1 0
replied on August 12, 2014

No need for two rules.

 

.approval-wrap p, #comments {display: none;}

 

3 0
replied on August 13, 2014

I think I had it separated because i originally did it in parts, but yes, one can do it together as well. 

0 0

Replies

replied on December 3, 2019

In case anyone is still having trouble getting the CSS to work--which I was in forms 10.3.1.275-- I got it to work using javascript:

$(document).ready(function(){  
  $('.comment-section').hide();
});
3 0
replied on November 5, 2020

Thank you for posting. The CSS code given earlier may have worked in 2014 when it was written, but with current versions of forms, it leaves the label of the field showing. Your little JQuery snippet works perfectly!

0 0
replied on June 16, 2022

If you used this CSS in Laserfiche Forms 10.4.5 or earlier:

.approval-wrap p, #comments {display:none;}

In Laserfiche Forms 11 you will need to update your Classic Forms Designer forms to use this CSS:

.approval-wrap .comment-section { display: none; }

Note: This worked before version 11, but I'm not certain how far back it works version wise.

 

If you convert your forms into the New Forms Designer and wish to hide the generated comments section you will need to click the Theme Icon, Select the CSS tab and enter this CSS:

#comment-container
{
  display:none;
}

I hope this helps.

3 0
replied on February 15, 2017

I actually used the provided code in the CSS section. No error is generated.

Capture1.PNG
Capture1.PNG (132.65 KB)
2 0
replied on December 8, 2021

This worked great, thank you. Using v10.4.

0 0
replied on June 26, 2018

In order for it to work in Forms 10.3.1, I changed the comments selector (see below for CSS).

.approval-wrap > p, .comment-section {display: none;}

2 0
replied on July 5, 2018

This isn't working for me.  What have I done wrong?

I tried Vanessa's code first, then tried Eric's code.  Neither worked.

 

0 0
replied on July 5, 2018

please comment out the comment above your CSS code.  

 

/* To hide the built-in comment box*/

.approval-wrap p, #comments {display: none;}

2 0
replied on July 5, 2018

That worked!! Thanks!

1 0
replied on October 30, 2018

That worked , thanks Vanessa! 

Side note: is there a reason why Comments appear by default? Not understanding why it's a default setting.

1 0
replied on April 7, 2022

We upgraded from Forms 10.4.5 to Forms 11.0.2201.20436 today and the CSS 

.approval-wrap p, #comments {display:none;}

was working previous to the upgrade .  After the upgrade, the comments box showed up in .approval-wrap.  We had to change the CSS statement to:

.approval-wrap p, .comment-section {display:none;}

in order to once again hide the comments box.

2 0
replied on December 16, 2021

Here is an interesting problem related to this.  I have a standard css file with the following:

/* standard Style */
#cf-formtitle {margin-bottom: 0px; height: 80px;}
.cf-form {padding-top: 0px;}
#form-title-wrap h1 {line-height: 28px; vertical-align: middle;}
.approval-wrap {background: #e3f0d3;}
.approval-wrap > p, #comments {display: none;}
.fileuploader {background: #012169; color: #ffffff }
.downloadbut .action-btn {font-size: medium; background: #012169; color: #ffffff;
    border-radius: 4px; box-shadow: 0 4px 8px 0 rgba(0,0,0,0.24), 0 8px 25px 0 rgba(0,0,0,0.19); }
.downloadmsg {font-size: medium;}
#preview-notice {display: none;}
.comment-section {display: none;}
/* End */

I place it in the form server \js folder and include it in my form using @import url .  The bottom of my form looks like this.

When I add an extra line after the import URL line:

@import url ....

.comment-section {display: none;}

Then my form looks like this:

All of a sudden the standard CSS I have been using stopped working to hide the comment section and the only way to hide seems to be by including the CSS in the form.  Importing the css using a URL did not work.  Very consistently, did not work.

 

 

1 0
replied on August 12, 2014

Thanks Kenneth!

0 0
replied on March 5, 2015

I've tried all of the suggestions above and the comment box still appears on the forms.

0 0
replied on March 5, 2015

It's very difficult to help with so little information. What version of forms are you on? Can you copy-paste the code you are using? Where did you put the code?

1 0
replied on March 28, 2016

I don't think it's obvious from above -- this goes in the CSS section, not the javascript section. 

1 0
replied on October 8, 2016

I downloaded a pre built business procees from laserfiche business process library. 

While running the forms through different approval stage, the built-in "comments section" is not present. 

 

Any idea how to make it available?? 

replied on February 14, 2017

Please, I tried to use the code provided to remove the in-build comment box but it doesn't work  

0 0
replied on February 15, 2017 Show version history

It's very difficult to help with so little information.

  1. What version of forms are you on?
  2. Are you getting any errors?
  3. Can you copy-paste the CSS code you are using?
  4. Where did you put the code?
0 0
replied on May 3, 2018

I also used the code provided above and it does not work properly.  I have Forms 10.3 and I am getting no errors.  I pasted the code into the CSS section.

CSS: 

.approval-wrap > p, #comments {
  display:none;
}

How it displays:

0 0
replied on April 5, 2022

Hello, I am having trouble hiding this field, too. I tried a few things mentioned above with CSS and JavaScript without success. I am a novice though so I'm sure it's something simple I am getting wrong. I am on Laserfiche Forms Professional Version 11.0.2201.20436. Here is what it looks like right now: 

0 0
replied on April 5, 2022

This is what I use:

/*To hide the built-in comment box*/
.approval-wrap p, #comments {display: none;}

1 0
replied on April 5, 2022

Thank you, I will try this. This is CSS right? 

0 0
replied on April 5, 2022

Yes

1 0
replied on April 5, 2022

Hmm that didn't work for me but I appreciate you! I added it in the beginning so maybe placement was the issue. 

0 0
replied on April 5, 2022

Is it a difference between Cloud based Laserfiche Forms and On-Prem?

0 0
replied on April 5, 2022

I am not sure, we do host forms on our server but access online. Unfortunately, I don't really know.

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

Sign in to reply to this post.