Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: How do I modify Tab Order?

  1. #1
    AlexG is offline Junior Member
    Join Date
    Mar 2008
    Posts
    4

    Default How do I modify Tab Order?

    I do not mean the order of the tabs along the top of the screen. When someone is editing the contacts screen, and they press the tab key on the keyboard, it should move to the next field. Only thing is, Sugar doesn't seem to be too smart about how this should be done. Therefore, I want to change it myself. How do I do this?

    Alex Gallegos
    Last edited by AlexG; 2008-04-18 at 07:42 PM.

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: How do I modify Tab Order?

    Hi, Alex

    Which version are you using?

    If it is 5.0 you can insert the attribute inside field definition in editviewdefs.php

    PHP Code:
                  'name' => 'phone_office',
                  
    'label' => 'LBL_PHONE_OFFICE',
                  
    'tabindex' => '2'
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: How do I modify Tab Order?

    You can also use the Studio Editor. If you click on the little pencil next to the name of the field a panel will render on the right hand side of the screen and allow you to edit the label of the field and the tab order of that field.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  4. #4
    userz is offline Junior Member
    Join Date
    Dec 2007
    Posts
    4

    Default Re: How do I modify Tab Order?

    Hi Kbrill, I was following your instructions in Studio to change the tab order, but I do not have the "pencil" icon. I can get field properties open, but there is no choice for tab order. I only have choices on label name, system name, text, size, and max characters.

    Do you know where I can change this with studio ??

    V 5.0.0 build 3095

  5. #5
    frankext is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    43

    Default Re: How do I modify Tab Order?

    Quote Originally Posted by userz
    Hi Kbrill, I was following your instructions in Studio to change the tab order, but I do not have the "pencil" icon. I can get field properties open, but there is no choice for tab order. I only have choices on label name, system name, text, size, and max characters.

    Do you know where I can change this with studio ??

    V 5.0.0 build 3095
    Hi userz,

    You have to click <your module> -> Layouts -> Editview -> <your field> [pencil icon], and the "Tab Order" will be shown on the right panel, named "Field Editor", for you to edit.

    But seems to have some problems on 5.0.0e, which I did the test on. Not so well as you expected in some cases.
    rgs

    frankext
    Last edited by frankext; 2008-05-28 at 12:52 PM.

  6. #6
    conste is offline Junior Member
    Join Date
    Jun 2008
    Posts
    3

    Default Re: How do I modify Tab Order?

    Quote Originally Posted by andopes
    Hi, Alex

    Which version are you using?

    If it is 5.0 you can insert the attribute inside field definition in editviewdefs.php

    PHP Code:
                  'name' => 'phone_office',
                  
    'label' => 'LBL_PHONE_OFFICE',
                  
    'tabindex' => '2'
    I've tried using tabindex and taborder but nothing seems to work. I'm trying to get the tabbing order to go from left to right and then down.

    When I view the source my tabindex tags are all wrong. Does anyone know where I can find the code that parses the tabindex field?

  7. #7
    conste is offline Junior Member
    Join Date
    Jun 2008
    Posts
    3

    Default Re: How do I modify Tab Order?

    Quote Originally Posted by conste
    I've tried using tabindex and taborder but nothing seems to work. I'm trying to get the tabbing order to go from left to right and then down.

    When I view the source my tabindex tags are all wrong. Does anyone know where I can find the code that parses the tabindex field?
    Well I was finally able to solve my problem. All I had to do was comment out some code in include\EditView\EditView.tpl. It's a loop that sets the tabindex to go left to right by column instead of by field.

  8. #8
    kenneth.thorman is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    191

    Default Re: How do I modify Tab Order?

    Could you please post your fix?

    Thank you in advance.

    Regards
    Kenneth Thorman

  9. #9
    deoj is offline Senior Member
    Join Date
    Sep 2008
    Location
    Cebu City, Philippines
    Posts
    34

    Default Re: How do I modify Tab Order?

    Quote Originally Posted by andopes View Post
    Hi, Alex

    Which version are you using?

    If it is 5.0 you can insert the attribute inside field definition in editviewdefs.php

    PHP Code:
                  'name' => 'phone_office',
                  
    'label' => 'LBL_PHONE_OFFICE',
                  
    'tabindex' => '2'
    Hi Andre,

    i tried adding 'tabindex' and it work.
    BUT there seems to be a little problem though.
    when in the very last field, pressing the tab will jump
    to the logout link (above) instead in the save button (below).

    how can i fix this?
    did anyone resolved this tab order problem? pls. help

    thank you.

  10. #10
    deoj is offline Senior Member
    Join Date
    Sep 2008
    Location
    Cebu City, Philippines
    Posts
    34

    Default Re: How do I modify Tab Order?

    i think i found a solution to my problem.
    i just set ALL fields to tabindex zero in
    /custom/modules/Contacts/metadata/editviewdefs.php

    thanks.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Tab Order on forms
    By macroscopic in forum Help
    Replies: 4
    Last Post: 2011-10-30, 08:33 PM
  2. Tab Order Not Changing
    By andymac in forum Developer Help
    Replies: 6
    Last Post: 2008-07-18, 09:55 AM
  3. Editing tab order for a user in 4.0.0
    By emikysa in forum General Discussion
    Replies: 2
    Last Post: 2006-01-01, 10:03 AM
  4. SugarCrm 4.0 Patch
    By mgamboa in forum General Discussion
    Replies: 0
    Last Post: 2005-12-21, 04:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •