set focus on first field

Questions related to using nuBuilder Forte.

set focus on first field

Postby ARWEN » Sun Jan 06, 2019 6:09 am

Steven,

From nuform.js:

Code: Select all
   if(nuFormType() == 'edit' && nuIsNewRecord() && f.objects.length > 0){
      obj0.focus();
   }


Wouldn't it be useful to set the focus on the first field in any case, not just for new recrods? What do you think?
ARWEN
 
Posts: 48
Joined: Thu Nov 01, 2018 2:31 pm

Re: set focus on first field

Postby ARWEN » Mon Jan 07, 2019 3:19 pm

So, what do you think?
ARWEN
 
Posts: 48
Joined: Thu Nov 01, 2018 2:31 pm

Re: set focus on first field

Postby ARWEN » Fri Feb 01, 2019 2:25 pm

ARWEN wrote:So, what do you think?


Looks like questions aren't being answered anymore. I've solved it myself.
ARWEN
 
Posts: 48
Joined: Thu Nov 01, 2018 2:31 pm

Re: set focus on first field

Postby kev1n » Thu Feb 14, 2019 3:17 pm

IMO, this is not trivial. You might not always want to focus the first field of a form. You might want to skip disabled/readonly fields or even buttons.
kev1n
 
Posts: 191
Joined: Mon Oct 15, 2018 2:13 am

Re: set focus on first field

Postby admin » Fri Feb 15, 2019 6:14 am

Everyone,

This is fixed in our next update.

Bit its still a couple of days away.

Steven
admin
Site Admin
 
Posts: 3079
Joined: Mon Jun 15, 2009 9:53 am

Re: set focus on first field

Postby admin » Wed Feb 20, 2019 10:07 am

ARWEN,

This has been added to both the

standalone https://sourceforge.net/projects/nubuilder/

and

plugin https://wordpress.org/plugins/search/nubuilder/

versions of nuBuilder Forte.

Steven
admin
Site Admin
 
Posts: 3079
Joined: Mon Jun 15, 2009 9:53 am


Return to General