Results 1 to 5 of 5

Thread: tab order doesnt work for date fields

  1. #1
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default tab order doesnt work for date fields

    I am trying to change the tab order in studio for contacts but it doesn't work for birthday

    Whatever I put in as tab order it always has a tab order of 1 if I view the souce

    This is because it is a date field and in SugarFields/Datetime/EditView.tpl tabindex is hardcoded to 1

    How can I make it pick up the tabindex from editviewdefs.php?
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  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: tab order doesnt work for date fields

    Hi Mike.

    It is a bug in Sugar.

    You can duplicate the folder include/SugarFields/FIelds/DateTime to another one, like TabDateTime.

    Modify the enough in the Field class and add the tab order attribute into EditView.tpl

    Best regards.
    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
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: tab order doesnt work for date fields

    Quote Originally Posted by andopes
    Hi Mike.

    It is a bug in Sugar.

    You can duplicate the folder include/SugarFields/FIelds/DateTime to another one, like TabDateTime.

    Modify the enough in the Field class and add the tab order attribute into EditView.tpl

    Best regards.
    yup I logged it as a bug

    What I want to know is how to make EditView.tpl pick up the taborder from Editviewdefs.php

    for example If I wanted a variable from vardefs I could use something like title='{{$vardef.help}}'
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  4. #4
    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: tab order doesnt work for date fields

    Hi Mike.

    Just replace the
    tabindex="1"
    by
    tabindex="{{$tabindex}}"

    In EditView.tpl of the copy of the DateTime Field

    Cheers
    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.

  5. #5
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: tab order doesnt work for date fields

    Quote Originally Posted by andopes
    Hi Mike.

    Just replace the
    tabindex="1"
    by
    tabindex="{{$tabindex}}"

    In EditView.tpl of the copy of the DateTime Field

    Cheers
    Great Thanks
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

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. Replies: 0
    Last Post: 2008-06-17, 06:54 PM
  3. work order friendly?
    By mackeson71 in forum General Discussion
    Replies: 0
    Last Post: 2005-08-12, 07:14 PM
  4. Custom fields - Default value doesn't work
    By malcolmh in forum Help
    Replies: 4
    Last Post: 2005-07-27, 03:56 PM
  5. changing fields in dashboard tab
    By WilliamC in forum Help
    Replies: 0
    Last Post: 2005-06-17, 10:40 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
  •