← Back to team overview

dhis2-devs team mailing list archive

Re: CONTROLLING THE DIRECTION THE CURSOR-CUSTOM FORMS

 

If your form is simple enough just add attribute tabindex to each input
field and increment the number in the direction of input fields you want.

Input boxes may look like this

<input type="text" name="some-dataelement-name" tabindex="1" />

Though the catch is If you're inserting those input boxes with html editor,
you'll need to edit those input boxes for every new entry.

That's as basic as it gets, you can make it as complex as you want with
javascript.

Basic info on tabindex is here:
https://www.w3schools.com/tags/att_global_tabindex.asp



John Francis Mukulu
Lead Developer, HISPTZ
University of Dar es salaam
http://hisptanzania.org/

On Dec 11, 2017 14:00, "Stanley Kalyati" <skalyati@xxxxxxxxx> wrote:

> Hi All,
>
> How can someone customize the cursor to move either vertical or horizontal
> in a custom form?
>
> Thanks
>
> Stanley
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>

References