focus cursor in edit view

A place for users and developers of the Xataface to discuss and receive support.

Postby 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.
sstoddard
 
Posts: 14
Joined: Wed Dec 31, 1969 5:00 pm

Postby 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

--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby 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?
sstoddard
 
Posts: 14
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 13 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved