COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Upgrading to Cognos Analytics => Topic started by: joseph123 on 16 Jan 2018 06:29:53 PM

Title: Cognos Analytics 11.0.7 JavaScript to restrict Maxlength for TextBox prompt
Post by: joseph123 on 16 Jan 2018 06:29:53 PM
Hi All


We upgraded Cognos from 10.2 to 11.0.7 and the JavaScript to restrict textbox maxlength is not working which was working in 10.2.

Can any one suggest me the right script in 11.0.7

Here is my 10.2 script

<script language="javascript">
var fW = (typeof getFormWarpRequest == "function" ? getFormWarpRequest() :
document.forms["formWarpRequest"]);
fW._textEditBoxSSNt.maxLength = 4;
</script>