You need to sign in to do that
Don't have an account?
bkmmsp
Javascript Error on simple List Button
I have created an example list view button and when I click it, I am getting a javascript error:
" A problem with the OnClick Javascript for this button or link was encountered: Expected ';'
The button code is quite simple:
newArray = {!GETRECORDIDS($ObjectType.Task)};
alert(newArray);
This list button works in Contacts and the Activity List View records, BUT NOT for Accounts. The only thing non-standard is that I am using record types with the accounts. I have added the button to all list views for all record type layouts. I am using IE6.
I think this might be a bug...
Any ideas?
Thanks,
BKM
" A problem with the OnClick Javascript for this button or link was encountered: Expected ';'
The button code is quite simple:
newArray = {!GETRECORDIDS($ObjectType.Task)};
alert(newArray);
This list button works in Contacts and the Activity List View records, BUT NOT for Accounts. The only thing non-standard is that I am using record types with the accounts. I have added the button to all list views for all record type layouts. I am using IE6.
I think this might be a bug...
Any ideas?
Thanks,
BKM
newArray = "{!GETRECORDIDS($ObjectType.Task)}";
alert(newArray);
The double quotes might help since you are bringing in a merge field...
HTHs
Code: So... There's a missing or extra quote. If your code looks identical to mine, then I'd view the source code and find the button to figure out what the code looks like "under the hood". Here's what mine looks like:
Code: Looking at the source, it's easy to identify if there's a run-away quote and if it's your fault or not. Check there if all else fails.
~ sfdcfox ~
Message Edited by sfdcfox on 07-12-2007 06:04 PM
sfdcfox,
Thanks - I will look into as you dexcribe..
BKM