Page 1 of 1

set focus on first field

PostPosted: Sun Jan 06, 2019 6:09 am
by ARWEN
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?

Re: set focus on first field

PostPosted: Mon Jan 07, 2019 3:19 pm
by ARWEN
So, what do you think?

Re: set focus on first field

PostPosted: Fri Feb 01, 2019 2:25 pm
by ARWEN
ARWEN wrote:So, what do you think?


Looks like questions aren't being answered anymore. I've solved it myself.

Re: set focus on first field

PostPosted: Thu Feb 14, 2019 3:17 pm
by kev1n
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.

Re: set focus on first field

PostPosted: Fri Feb 15, 2019 6:14 am
by admin
Everyone,

This is fixed in our next update.

Bit its still a couple of days away.

Steven

Re: set focus on first field

PostPosted: Wed Feb 20, 2019 10:07 am
by admin
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