You need to sign in to do that
Don't have an account?
Execute Javascript Error
I'm experiencing an error "A problem with the OnClick JavaScript for this button or link was encountered:
missing ; before statement"
The following is the Custom Link Execute Javascript behavior. It would be greatly appreciated if anyone can point out what went wrong:
{!REQUIRESCRIPT("/soap/ajax/19.0/connection.js")}
<a href="" onClick="script: Zenbox.show(); return false;">Open</a>
<script type="text/javascript" src="http://asset0.zendesk.com/external/zenbox/zenbox-2.0.js"></script>
<style type="text/css" media="screen, projection">
@import url(http://asset0.zendesk.com/external/zenbox/zenbox-2.0.css);
</style>
<script type="text/javascript">
if (typeof(Zenbox) !== "undefined") {
Zenbox.init({
dropboxID: "6546848944",
url: "anaccount.zendesk.com",
tabID: "support",
tabColor: "black",
tabPosition: "Left",
requester_name: "Jake Holman",
requester_email: "jake@sendesk.com",
request_subject: "I am a custom subject",
request_description: "I am a custom description",
closeText: "Close Me!",
loadingText: "Sit tight..."
});
}
</script>
Putting the code to a Visualforce Page is the way to do it.