Hi,
I have a block that contains a tree-prompt that I want to have hidden when the report is run. Using HTML items I have managed to create a button that will allow me to hide & show this block, although when the report is run the block is shown (I need it to start hidden). I am having trouble figuring out how to run the report with the block initially hidden.
Could anyone help me to modify the code below so that I can get this to work?
First HTML item to generate button:
//Creates show/hide button
<a href="JavaScript:ShowHide()
">Click here to show/hide report filter</a>
First span HTML item:
<span id = "Prompt_Block">
Bottom span HTML item:
</span>
Last HTML item that shows/hides Prompt_block element:
<script language="javascript">
function ShowHide(){
var el = document.getElementById("Prompt_Block");
if ( el.style.display != 'none' )
{el.style.display = 'none';}
else {el.style.display = '';}}
function startHidden(){
var el = document.getElementById("Prompt_Block");
el.style.display = 'none';}
</script>
Hi,
you can add below code
<script language="javascript">
var ell = document.getElementById("Prompt_Block");
ell.style.display = 'none';
function ShowHide(){
var el = document.getElementById("Prompt_Block");
if ( el.style.display != 'none' )
{el.style.display = 'none';}
else {el.style.display = '';}}
</script>
Thanks & Regards
Satheesh Chapparapu
Mumbai
Thanks Satheesh. That's the perfect response - it works!
Many thanks