Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to set focus the cursor on specific page item

anand_gpJul 25 2017 — edited Jul 25 2017

Hi,

I wanted to know how to set the focus of the cursor to specific page item during page load.

I tried with below appraoch -

I set "" to =>  onLoad="first('P19_PATIENT_NAME')"

Added below function to HTML Header -

function first(field1)

{

if(document.getElementById(field1))

{

var theField = document.getElementById(field1);

if((theField.type!="hidden")&&(!theField.disabled)&&(theField.value!="NULL"))

{

theField.focus();

}

return true;

}}

Page attribute's Cursor Focus is "First item on page"

However, when page loads, cursor is focusing on first item of the page.  Can someone help me on this. (Apex 4.2.6)   Thanks,

-Anand

This post has been answered by Marko Goricki on Jul 25 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 22 2017
Added on Jul 25 2017
2 comments
2,116 views