This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Nov 5, 2012, 11:09 PM
10 Posts
topic has been resolvedResolved

Cursor location when opening an xpage

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: cursor location
  • Replies: 3
 
When opening the xpage below, I would like to control the default location of the cursor.  I want to position the cursor in the "Enter Account #" search box, so the user can just start typing.  Tab Index does not seem to do anything.  Users must first move the mouse to the text box and click before typing.  Suggestions?
 
 

Nov 6, 2012, 4:53 AM
366 Posts
Re: Cursor location when opening an xpage
In the XPages onClientLoad event in the CLIENT SIDE java script editor add the following code
 
 
var ipt = dojo.byId("#{id:inputText1}");
ipt.focus();
 
 
where InputText1 is the name of the field to focus on.
Nov 6, 2012, 5:47 PM
10 Posts
Re: Cursor location when opening an xpage
Perfect!  Thank you.
Nov 6, 2012, 6:57 PM
366 Posts
Re: Cursor location when opening an xpage
You are very welcome.  Please mark as Resolved if you have a chance.  Thanks.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal