Need a label over a list of checkboxes on a form (not portal/catalog)

Community Alums
Not applicable

On the platform side, on a form that is part of a custom table, there is a grouping of checkboxes (true/false) that need a heading. I don't want an Annotation because I have UI policies in place to hide these checkboxes if a certain other field is selected; the annotation can't be hidden along with these fields in that UI Policy. 

It's a long sentence that I need to put above these checkboxes and there isn't a plain text label type. I tried "Field Label" but it looks like this and I want it to stretch out like in the yellow highlighted blank area instead. 

find_real_file.png

what are my options? 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Ok I found another community post that I stole this from and it's hiding the Annotation that I originally didn't want to make 🙂 

I checked 'Run scripts' and set this to execute if true: 

function onCondition() {
var refs = document.getElementsByClassName("annotation-wrapper");
refs[0].style.display = 'none';
}

And this to execute if false: 

function onCondition() {
var refs = document.getElementsByClassName("annotation-wrapper");
refs[0].style.display = 'block';
}

View solution in original post

1 REPLY 1

Community Alums
Not applicable

Ok I found another community post that I stole this from and it's hiding the Annotation that I originally didn't want to make 🙂 

I checked 'Run scripts' and set this to execute if true: 

function onCondition() {
var refs = document.getElementsByClassName("annotation-wrapper");
refs[0].style.display = 'none';
}

And this to execute if false: 

function onCondition() {
var refs = document.getElementsByClassName("annotation-wrapper");
refs[0].style.display = 'block';
}