COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: rtikat on 29 Apr 2009 07:05:02 AM

Title: Tab Order on Prompt Pages
Post by: rtikat on 29 Apr 2009 07:05:02 AM
On a prompt page that has prompts and text box labels for the prompts, the tabs always go through the text labels instead of just tabbing through the entry boxes, which is really annoying for users.  Has anyone found a way around this? I would have thought there would be an easy way to set tab order but if it's there I haven't found it.  Thanks for any help!
Title: Re: Tab Order on Prompt Pages
Post by: karljens on 15 Jun 2009 04:43:23 PM
there are a couple ways to do this... I am sure some may not work depending on what version you are on.  this should work in 8.3.  Also there was a presentation a Forum in 2009 that had some groovey JavaScript that automatically did it.  But here is a way to manually do it.

name each prompt _lname, _fname, _prvid and _cityx (or whatever you want).  You can add as many as you like.

<SCRIPT LANGUAGE="javascript">
   document.formWarpRequest._textEditBox_lname.tabIndex = 1;
   document.formWarpRequest._textEditBox_fname.tabIndex = 2;
   document.formWarpRequest._textEditBox_prvid.tabIndex = 3;
   document.formWarpRequest._textEditBox_cityx.tabIndex = 4;
</SCRIPT>

good luck!