Page 1 of 1

Customizing the Toolbar Tutorial: Help with Editing the JS

Posted: Thu Dec 02, 2021 7:25 am
by raloverin
Hi everyone,

We're following the tutorial for Customizing the Toolbar: https://docs.madcapsoftware.com/flare20 ... torial.pdf. We don't need the CC option, but whenever we try to remove it from the code below, we end up breaking the functionality (for example, all of the output like email, page title, etc. goes into the message's tool field.

Can anyone help us figure out how to remove the CC option?

Code: Select all

function sendMail() {
var email=('myname@company.com');
var ccemail=('othername@company.com');
var subject="Feedback from topic: " + document.title;
var body="Feedback from topic: " + document.title + " (" +
window.location.href + ")";
var link = "mailto:" + email
        + "?cc=" + ccemail
        + "&subject=" + subject
        + "&body=" + body;
window.location.href = link;
}

Re: Customizing the Toolbar Tutorial: Help with Editing the

Posted: Sun Dec 05, 2021 5:28 pm
by Psider
I think when you delete the cc line, you need to change the & (ampersand) in the subject line to ? (question mark). If not, Dave will likely be along soon with the correct information. :)