COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: dys on 19 Apr 2007 02:42:33 PM

Title: Disable Reprompt Button After Click
Post by: dys on 19 Apr 2007 02:42:33 PM
I'd like to disable a Reprompt button after clicking it, but I'm not sure of the javascript syntax to access the button to do this. Any help would be much appreciated...
Title: Re: Disable Reprompt Button After Click
Post by: kattaviz on 26 Apr 2007 11:02:33 AM
Hi,

Give a name to the button,insert a HTML item and create a function in javascript in thae HTML item with the syntax given below.
------------------------------------------------
function buttonClick()
{
document.form1.but.disabled = true;

}
</script>
-------------------------------------------------
Here i had named the Form as "form1" and button as "but"


hth