How can I focus the cursor on a new report?

(4 posts) (2 voices)

Tags:

No tags yet.

  1. brycedcamp, Member

    I have quite a few popup reports that have some required text fields. How can I focus the users cursor in the first text box when it loads?

  2. myDBR Team, Key Master

    Hi,
    what is the content of the report when it loads: a parameter query or a dbr.editable-content?

    --
    myDBR Team

  3. brycedcamp, Member

    parameter query

  4. myDBR Team, Key Master

    You can do something like:

    <script type="text/javascript"> $(document).ready(function() { setTimeout('$("#popup_u1").focus();', 100); }); </script>

    In the Help/JavaScript field for the linked report. Adjust the popup and u1 if you are using different name for the popup or if you have other parameters that do already have a value.

    --
    myDBR Team


Reply

You must log in to post.