javascript - Missing ) after argument list in SFDC -
i'm receiving following error
"missing ) after argument list"
when clicking on custom button in sfdc. aim of button launch specific case type in our internal , community environments.
any appreciated!
{!requirescript("/soap/ajax/28.0/connection.js")} {!requirescript("/soap/ajax/28.0/apex.js")} if('{!$site.prefix}'!=''){ window.open('{!$site.prefix}/500/e?returl=%2f500%2fo&recordtype=0121b0000004ikz,'_parent'); }else{window.open('500/e?returl=%2f500%2fo&recordtype=0121b0000004ikz,'_parent');} var qr = sforce.connection.query("select id recordtype (name= 'device request') , sobjecttype = 'case'");
try this:
{ !requirescript("/soap/ajax/28.0/connection.js") } { !requirescript("/soap/ajax/28.0/apex.js") } if ('{!$site.prefix}' != '') { window.open('{!$site.prefix}/500/e?returl=%2f500%2fo&recordtype=0121b0000004ikz','_parent'); }else{ window.open('500 / e ? returl = % 2 f500 % 2 fo & recordtype = 0121 b0000004ikz', '_parent'); } var qr = sforce.connection.query("select id recordtype (name= 'device request') , sobjecttype = 'case'");
Comments
Post a Comment