Question

6
Replies
5332
Views
DipakR08 Member since 2017 8 posts
Accenture Solution Pvt Ltd
Posted: 2 years ago
Last activity: 2 years 8 months ago
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 Interface
Moderation Team has archived post
Share this page LinkedIn