- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2019 07:56 AM
I have a Line Separator Annotation that I want to hide until a certain state. Is there a way to hide them?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2019 07:58 AM
Take a look at this
http://blog.symfoniesm.com/use-form-annotations-as-sections-and-conditionally-hide-those-sections
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2019 08:48 AM
The id's for section separators are unique correct?
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2019 08:54 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2019 08:58 AM
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
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2019 09:22 AM
That's not doing anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2019 09:48 AM
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