Hiding Section/Line separators.

Andrew122
Mega Expert

I have a Line Separator Annotation that I want to hide until a certain state.  Is there a way to hide them?

1 ACCEPTED SOLUTION

Prateek kumar
Giga Sage

Take a look at this

http://blog.symfoniesm.com/use-form-annotations-as-sections-and-conditionally-hide-those-sections

View solution in original post

11 REPLIES 11

The id's for section separators are unique correct?

Yes.  I named them "final1" and "final2"

My Div is <divid id = 'final1'></divid>

and my UI Policy is: final1.style.display = 'none';

I tried document.getElementById('final1').parentNode.style.display="none"; as shown in that blog but that wouldn't even get rid of any text between the div tags

It has to be the following

document.getElementById('final1').parentNode.style.display='none';

and since this is DOM manipulation make sure isolation script check box is set to true

That's not doing anything.

Looking at the console, I am getting the error "Cannot read property 'getElementById' of null..." So I guess that there is something that is causing this error about getElementById?  We're running London patch 7