Page 1 of 1

PostPosted: Wed Sep 12, 2007 3:50 pm
by sstoddard
Hi, I know that this is probably pretty easy, but I can't find any reference to this?

When going to a new add record or add related form, I would like the cursor to be focused in the first field automatically.

I want this to be the default for all new record forms. Any nudge in the right direction would be appreciated.

Thanks!

Steve S.

PostPosted: Thu Sep 13, 2007 9:29 am
by shannah

Sorry... evidently this one is undocumented.Ê You should be able to just set widget:focus to 1 in the fields.ini file for the field you want to focus

e.g.

[myfield]

widget:focus=1

Let me know if it doesn't work


PostPosted: Fri Sep 14, 2007 9:13 am
by sstoddard
Thanks for this. No, there wasn't anything documented.

It does work? sort of. It doesn't work if the field to focus on is within a group or if it isn't a simple text box. i.e. no dice with a select field (date, to be specific).

So I had to drop my group and re-order fields. Data entry speed being a premium?