Customizing the Toolbar Tutorial: Help with Editing the JS

This forum is for all Flare issues not related to any of the other categories.
Post Reply
raloverin
Jr. Propeller Head
Posts: 1
Joined: Wed Dec 01, 2021 12:07 pm

Customizing the Toolbar Tutorial: Help with Editing the JS

Post 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;
}
Psider
Propellus Maximus
Posts: 811
Joined: Wed Jul 06, 2011 1:32 am

Re: Customizing the Toolbar Tutorial: Help with Editing the

Post 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. :)
Post Reply