Hide Annotation with Client Script

Not applicable

Is it possible to hide an Annotation with a client script the way we can make fields visible/invisible?

I'd like to be able to hide an Annotation along with a set of fields for a specific set of users.

As a workaround, I suppose I could create an actual field with a colored label, but that seems like brute force.

15 REPLIES 15

You can use any of those two. It really depends on "when" to hide the annotation.


Is there a way to do this if it's a standard annotation. I've looked at the DOM and it has no id to work with.


SN-Murph
Kilo Contributor

Agree, this is working on one instance

Build date: 02-04-2011_1258
Build tag: glide-winter2011-01-21-2011

On a different instance with the same release it doesn't work.

Build date: 02-04-2011_1258
Build tag: glide-winter2011-01-21-2011

This instance is running on a different hardware, different IP. The html code will not be translated and shown as HTML-tags.

My annotation is like this:



Do I have missed anything?

Cheers

This post was supposed to be at the end of this thread!!!!


erite123
Kilo Contributor

However even if the text is hidden there is still the gap (the annotation area). Have you found a way to remove it?
Cheers
E


jevans
Kilo Contributor

I was wondering if anyone ever found a way to eliminate the annotation gap? I have several fields on a form that are hidden by default using UI policies, and then a split with an annotation displaying to the right of each field containing extra information for the end user. The script described here successfully hides the text, but leaves a gap where the annotation is between the previous field and the next field. I have to configure several fields and annotations like this and it will leave enormous gaps in place of these annotations if I'm unable to completely hide them.

Any feedback on how to resolve this or a substitute to accomplish the same thing would be greatly appreciated.