Results 1 to 3 of 3

Thread: Two Issues w/Modifying Tab Stops

  1. #1
    sgarbade is offline Member
    Join Date
    Feb 2010
    Posts
    12

    Question Two Issues w/Modifying Tab Stops

    Greetings,

    After creating custom fields in the LEADS module, tab stops were all over the place when you wanted to edit a lead. I consulted the forums and found the following post:

    http://www.sugarcrm.com/forums/showt...light=tabindex

    Problem 1:

    I initally fixed the problem by following the recommendation in the above post to set all tabindex settings to "0" in custom\modules\leads\metadata\editviewdefs.php. This fixed the problem for the most part (tabs went in order from left to right then top to bottom. The only thing this did not fix were the fields setup as clickable calendars. When pressing tab it would skip over any fields that were calendar fields and you would have to manually click them. I posted in the thread above for a solution, however, there were no responses :-(

    Problem 2:

    Today we added an additional custom field to the Leads module and again when we went to edit a lead the tab stops were all over the place. It would start in the first field "first name" and then would immediately skip to all the calendar fields toward the bottom, then go back up to the top to "last name", behave properly for a couple of fields and them start skipping all around again. I again went to custom\modules\leads\metadata\editviewdefs.php and changed all the tabindex settings to "0", however, this time it did not help. In fact, nothing changed in the tab stop order at all and I cannot figure out why it worked before and now it does not. All we did was add one more custom field.

    The questions I have:

    1. Were Tab Stops or Tab order fixed in later versions of Sugar (I am on 5.0.0g) so that you could actuallys edit them in Sudio as it was meant to be without editing code? (maybe upgrading to 5.2 is my solution?)

    2. Does anyone know how to fix what I have described above in 5.0.0g? Also, why would the calendar fields behave differently?

    Thanks,

    -Steve

  2. #2
    sgarbade is offline Member
    Join Date
    Feb 2010
    Posts
    12

    Default Re: Two Issues w/Modifying Tab Stops

    Greetings,

    I found one of the solutions. After editing editviewdefs.php I had to goto Admin > Repair> Clear Template Data Cache. I picked the module that I was working on "leads" and ran it and VOILA it worked. I still have one problem though and that is the fact that the tab stops will not stop at and will completely skip over any field that is setup with a clickable calendar. If anyone has a solution to this issue, I would apprecite it. Also, if anyone knows if these issues were fixed in 5.2 or 5.5, please let me know. I have not found anything in the release notes, however, I still need to dig a little more.

    -Steve

  3. #3
    sugarcane is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Chicago, IL
    Posts
    1,207

    Default Re: Two Issues w/Modifying Tab Stops

    For the issue in 5.0 with the clickable calendar:

    Copy this below code over the current include/SugarFields/Fields/DateTime/EditView.tpl and it should fix this issue. You may have to run a quick repair to fix the cached copies.

    As always, it is best to test on a stage environment first and make a backup of production before deploying any changes.

    PHP Code:
    *}
    {
    assign var=date_value value={{sugarvar key='value' string=true}} }
    <
    input autocomplete="off" type="text" name="{{sugarvar key='name'}}" id="{{sugarvar key='name'}}" value="{$date_value}" title='{{$vardef.help}}' size="11" maxlength="10" tabindex="{{$tabindex}}">
    <
    img border="0" src="themes/default/images/jscalendar.gif" alt="{$APP.LBL_ENTER_DATE}" id="{{sugarvar key='name'}}_trigger" align="absmiddle" />
    {{if 
    $displayParams.showFormats}}
    &
    nbsp;(<span class="dateFormat">{$USER_DATEFORMAT}</span>)
    {{/if}}
    <
    script type="text/javascript" language="javascript">
    Calendar.setup ({ldelim}
    inputField "{{sugarvar key='name'}}",
    daFormat "{$CALENDAR_FORMAT}",
    button "{{sugarvar key='name'}}_trigger",
    singleClick true,
    dateStr "{$date_value}",
    step 1
    {rdelim}
    );
    </script> 
    Intelestream has a great deal of experience hosting and customizing the SugarCRM application. Our company is made up by former employees of SugarCRM, and together we have over 50 years of experience working with the application. To learn more about us, please visit our website at www.intelestream.net or contact us directly at 800-391-4055 or by email at info@intelestream.net

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 2009-08-11, 04:44 PM
  2. Replies: 3
    Last Post: 2009-03-26, 02:03 PM
  3. modifying php.ini
    By Karol in forum Help
    Replies: 1
    Last Post: 2006-10-15, 10:07 PM
  4. Installer just stops
    By brammeke in forum Help
    Replies: 4
    Last Post: 2006-04-03, 12:57 PM
  5. install stops
    By littomalt in forum Help
    Replies: 5
    Last Post: 2005-06-09, 08:11 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
  •