focus cursor in edit view
Archived from the Xataface Users forum.
sstoddard — Wed Sep 12, 2007 3:50 pm
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.
shannah — Thu Sep 13, 2007 9:29 am
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
sstoddard — Fri Sep 14, 2007 9:13 am
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?