Have Entry Field in Form NOT in Tab Order

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
BLOMASKY
Posts: 1470
Joined: Wed Sep 30, 2015 10:08 pm
Location: Ocala FL

Have Entry Field in Form NOT in Tab Order

Post by BLOMASKY »

I want to have a field on a form that is NOT on the tab order (in other words, they can NOT tab into it). They have to click on the field to enter data.

Is this possible?

Thanks
Bruce
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Have Entry Field in Form NOT in Tab Order

Post by Jaymer »

you could probably add JS to the field in front to set the .focus to the appropriate field, thus skipping the mystery field.

fname: [ ] onblur="goto lname"
init: [ ]
lname: [ ]

this would only work for forward TABs thru the fields. Shift-TAB would allow into 'init' and Shift-TAB from fname would go to 'lname'
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Have Entry Field in Form NOT in Tab Order

Post by aware_support »

Not sure if it will work, but have you tried putting -1 into the tab order field?
Aware IM Support Team
BLOMASKY
Posts: 1470
Joined: Wed Sep 30, 2015 10:08 pm
Location: Ocala FL

Re: Have Entry Field in Form NOT in Tab Order

Post by BLOMASKY »

it does NOT allow a - to be entered.

Bruce
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Have Entry Field in Form NOT in Tab Order

Post by aware_support »

Try the following script - note the script should be attached to the attribute itself:

markup.attr("tabindex") = -1
Aware IM Support Team
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Have Entry Field in Form NOT in Tab Order

Post by Jaymer »

I actually thought this had worked for me, but I must have been wrong.

Browser console reports this when the Form starts:
Exception running script for attribute EIN of object Inventory ReferenceError: Invalid left-hand side in assignment
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
johntalbott
Posts: 619
Joined: Wed Jun 17, 2015 11:16 pm
Location: Omaha, Nebraska
Contact:

Re: Have Entry Field in Form NOT in Tab Order

Post by johntalbott »

Jaymer wrote:I actually thought this had worked for me, but I must have been wrong.

Browser console reports this when the Form starts:
Exception running script for attribute EIN of object Inventory ReferenceError: Invalid left-hand side in assignment
The exception is due to a syntax error. It should be:

markup.attr("tabindex", -1)
VocalDay Solutions - Agility - Predictability - Quality

We specialize in enabling business through the innovative use of technology.

AwareIM app with beautiful UI/UX - https://screencast-o-matic.com/watch/crfUrrVeB3t
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Have Entry Field in Form NOT in Tab Order

Post by Jaymer »

this does not work for me.

I don't get a console error, but my Inspector code shows: tabindex="0"
after this runs.
I output a message via console.log so I know this code is executing.

I have attached this to the "script" property on a field on a form
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
johntalbott
Posts: 619
Joined: Wed Jun 17, 2015 11:16 pm
Location: Omaha, Nebraska
Contact:

Re: Have Entry Field in Form NOT in Tab Order

Post by johntalbott »

As mentioned by Jaymer, markup doesn't work.

There are a few ways to do it. Here is one of them.

Init Script of field
field.m_config.tabOrder="-1"
VocalDay Solutions - Agility - Predictability - Quality

We specialize in enabling business through the innovative use of technology.

AwareIM app with beautiful UI/UX - https://screencast-o-matic.com/watch/crfUrrVeB3t
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Have Entry Field in Form NOT in Tab Order

Post by Jaymer »

OK, submitted by @idpsteve, here's a way to do it in Form Render Script.

$("input[id*='zTotalPaid']").attr('tabindex','-1');
$("input[id*='zTotalInvoiced']").attr('tabindex','-1');
$("input[id*='TotalAmount']").attr('tabindex','-1');
$("input[id*='fDolRemain']").attr('tabindex','-1');
$("input[id*='fLastBillDate']").attr('tabindex','-1');
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Have Entry Field in Form NOT in Tab Order

Post by Jaymer »

If you're interested in this, I'd suggest an email to Support.
Should be a simple change to allow the already-existing Tab Order property to allow a negative # to be entered.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
johntalbott
Posts: 619
Joined: Wed Jun 17, 2015 11:16 pm
Location: Omaha, Nebraska
Contact:

Re: Have Entry Field in Form NOT in Tab Order

Post by johntalbott »

Yep. That's one of the other ways.
VocalDay Solutions - Agility - Predictability - Quality

We specialize in enabling business through the innovative use of technology.

AwareIM app with beautiful UI/UX - https://screencast-o-matic.com/watch/crfUrrVeB3t
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Have Entry Field in Form NOT in Tab Order

Post by aware_support »

Watch out for the next build - it will allow entering -1
Aware IM Support Team
Post Reply