| Author |
Message |
|
bjohnson
|
Post subject: Custom Tabs and Fields Posted: Sun Apr 08, 2012 10:21 am |
|
Joined: Fri Oct 09, 2009 12:18 pm Posts: 46
|
|
I have set up a custom tab and custom field, in the contacts module, for both customers and vendors. When I click on the custom tab I get a thrown out javascript error.
The custom tab is set up as follows: Tab Title: CBC Description: Additional information to enter Sort Order: 100
The custom field is set up as follows: Field name: language Description: language Contact type: Customers and vendors checked Multiple options checkbox: checked Selection string: FR:French:0,SP:Spanish:0,GR:German:0
The field created in the contacts table looks correct: Field name is language and the field type is text.
The record in the xtra_tabs table also looks correct.
The record in the xtra_fields is as follows: params: a:3:{s:4:"type";s:15:"multi_check_box";s:12:"contact_type";s:16:"customer:vendor:";s:7:"default";s:36:"FR:French:0,SP:Spanish:0,GR:German:0";} Also all other records have a tab_id of 0, while my record has a tab_id of 1.
The error is receive is a javascript error: Exception thrown out and not caught The error line is: jquery-ui-1.8.16.custom.min.js, line 461 character 472
Any help would be great
|
|
 |
|
 |
|
ReneK
|
Post subject: Re: Custom Tabs and Fields Posted: Fri Apr 13, 2012 7:40 am |
|
Joined: Mon Mar 01, 2010 5:32 am Posts: 554 Location: Netherlands
|
|
It could be one of two things.
the first is did you enable cookies i see a lot of references to cookies in that row.
the second could be the tab name try a different name or add the field to a different tab.
if that does not work your problem is caused by the code in the page.
_________________ Rene Kervezee
|
|
 |
|
 |
|
dave
|
Post subject: Re: Custom Tabs and Fields Posted: Mon Apr 16, 2012 12:52 pm |
|
Joined: Fri Oct 26, 2007 3:55 pm Posts: 3498 Location: Colorado, US
|
|
I will need to see if I can reproduce this. The tab id is 0 for all standard fields, i.e. ones that come with the core install. In your case, tab_id 1 should link to the xtra_tabs table field 1 to group the extra fields in the appropriate tab. This error is thrown by jquery and will be a bear to locate. You may also want to try a different field type, like drop down to see if the field type is pulling the error. I know it is not what you want but this will help narrow down the possible causes.
Dave
|
|
 |
|
 |
|
bjohnson
|
Post subject: Re: Custom Tabs and Fields Posted: Mon Apr 16, 2012 2:52 pm |
|
Joined: Fri Oct 09, 2009 12:18 pm Posts: 46
|
|
It seems to have fixed itself. I reinstalled and tried it again and all is ok.
Thanks everyoone...
|
|
 |
|
 |
|