Page 1 of 1
set focus on first field
Posted: Sat Jan 05, 2019 9:39 pm
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
Posted: Mon Jan 07, 2019 6:49 am
by ARWEN
So, what do you think?
Re: set focus on first field
Posted: Fri Feb 01, 2019 5:55 am
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
Posted: Thu Feb 14, 2019 6:47 am
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
Posted: Thu Feb 14, 2019 9:44 pm
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
Posted: Wed Feb 20, 2019 1:37 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