Question

6
Replies
5794
Views
Close popover
Dipak Ruidas (DipakR08)
Accenture Solution Pvt Ltd

Accenture Solution Pvt Ltd
NL
DipakR08 Member since 2017 8 posts
Accenture Solution Pvt Ltd
Posted: February 7, 2018
Last activity: February 19, 2018
Closed

How to set focus on load of the screen

Hi,

We are using Pega 7.1.8.

How to set focus on a filed when screen is getting loaded first time.

What I did, I created a section with below script and added it in the main section where I have the "myTextId" property.But this is not working.

<script>
window.onload = function() {
document.getElementById("myTextId").focus();
};
</script>

User Experience
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.