Customizing tab through order

  • 1
  • Question
  • Updated 2 years ago
  • Answered

Is there a way to modify the order of fields that are selected when a user presses "tab" on their keyboard? We have a few pages where users need to enter some data on longer forms and it would be easier for them to just tab through all of the fields, and we would like to control the order of where they go tabbing through the form

I saw a post on this subject from a few years ago, but there wasn't much activity on it. Does anyone know if there is an easy way to do this?

Photo of Joe Dobbels

Joe Dobbels

  • 808 Points 500 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Stephen Sells

Stephen Sells, Alum

  • 17,326 Points 10k badge 2x thumb
Hey Joe, thanks for posting.

Buttons on Skuid do have HotKeys that can be configured to your liking. The action you're wanting Tab to do is a little fuzzy to me but you can have the action declared in a snippet to do whatever you want and the button will fire the snippet via the HotKey in the button. I'll warn you though, we can't compete with Chrome's standard usages or anything like that. It can also form poor user experience even if you do find a way to override it. I hope this helps as a good starting point.

<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" useviewportmeta="true" showheader="true">
        <model id="Acct" limit="20" query="true" createrowifnonefound="false" datasource="salesforce" sobject="Account">
                <field id="RecordTypeId"/>
                <field id="Name"/>
                <field id="Id"/>
                <field id="Fax"/>
        <tabset rememberlastusertab="false" defertabrendering="true" uniqueid="sk-3Lfn-307">
                <tab name="New Tab 1" loadlazypanels="true">
                        <pagetitle model="Acct" uniqueid="sk-3Lfn-643">
                            <maintitle>Go to New Tab 2</maintitle>
                <tab name="New Tab 2">
                        <buttonset model="Acct" uniqueid="sk-3Lfn-490">
                                <button type="multi" label="Control + Tab = Runs a snippet" uniqueid="sk-3Lfn-495">
                                        <action type="custom"/>
                                        <hotkey modifiers="ctrl" key="tab "/>
                        <skootable showconditions="true" showsavecancel="true" showerrorsinline="true" searchmethod="server" searchbox="true" showexportbuttons="false" hideheader="false" hidefooter="false" pagesize="10" alwaysresetpagination="false" createrecords="true" model="Acct" mode="read" allowcolumnreordering="true" responsive="true" uniqueid="sk-3Lfn-286">
                                <field id="Name" hideable="true" uniqueid="fi-3Lfn-345" allowordering="true">
                                    <renderconditions logictype="and" onhidedatabehavior="keep"/>
                                <field id="Id" hideable="true" uniqueid="fi-3Lfn-417"/>
                                <field id="Fax" hideable="true" uniqueid="fi-3Lfn-418"/>
                                <action type="edit"/>
                                <action type="delete"/>
                            <massactions usefirstitemasdefault="true">
                                <action type="massupdate"/>
                                <action type="massdelete"/>
                                <view type="standard"/>
                            <renderconditions logictype="and"/>
                        <action type="requeryModel" model="Acct" behavior="standard"/>
                    <renderconditions logictype="and"/>
        <actionsequences uniqueid="sk-3Lfn-267"/>
        <styleitem type="background" bgtype="none"/>
Photo of Mike Dwyer

Mike Dwyer, Champion

  • 4,736 Points 4k badge 2x thumb
Joe, are you looking for the tabindex attribute of an html tag? Like ...

<a href=""; tabindex="2">W3Schools</a>
<a href=""; tabindex="1">Google</a>
<a href=""; tabindex="3">Microsoft</a>