How to Set Focus on The First Textbox in osTicket System Index Page

When your client visit your osTicket System’s index page, then they will see that there are two textboxes on that page. The first textbox is Email, and the other one is Ticket#. Currently, your client have to point at their mouse and click on the Email textbox, so that their mouse cursor will focus on there. Afterwards, your client are able to enter their email address on that textbox. So I made modification in order each time client load that index page, the first textbox on that form (Email) will get focus automatically. It sounds unnecessary, but if you provide this facilitation for your client, they will feel comfortable each time they visit your osTicket System. Be uncertain about this? Prove it now!

Open index.php file, and find this code:

27
<div id="index">

replace with this following code:

27
28
<body onload="document.frmstatus.lemail.focus();">
<div id="index">

Find also this code:

46
  <form class="status_form" action="tickets.php" method="post">

replace with:

46
  <form name="frmstatus" class="status_form" action="tickets.php" method="post">

Find then this code:

65
66
67
<div class="clear"></div>
<br />
</div>

replace with this following code:

65
66
67
68
<div class="clear"></div>
<br />
</div>
</body>

Now each time your client visit your osTicket system, they don’t have to point at the Email textbox manually.

Share

626 viewsPrint This Post Print This Post

Comments

  1. fackeid says:

    Hey, it worked with 1.6ST

    only change is
    i do have

    instead of

    rest everything fine…

  2. fackeid says:

    I do have –
    form class=”status_form” action=”login.php” method=”post”

    instead of –
    form class=”status_form” action=”tickets.php” method=”post”

Speak Your Mind

*


*