How to create an email link that includes the topic title in the subject field

 Article #: GEN1007Z  Product: Flare Version: All

Summary:

The steps below is an example of how to include an email link in the Master Page so that the subject field will automatically be populated with the title of the topic from which the link is clicked.

Full Description:

  1. Locate and open the Master Page used for the target
  2. Place the cursor at the spot where the email link should be included
  3. Go to Insert > Script
  4. In the dialog that opens up, select "text/javascript" in the language selection and then paste in the following code.

    var email=('myname@company.com');

    var subject = "Feedback from Topic: " + document.title;

    document.write('<a href="mailto:' + email +

    '?subject=' +subject+ '">' + 'Click here to send feedback' + '<'+'/a>');

    Note: The email address needs to be replaced with the desired email address. The text "Feedback from Topic: " and "Click here to send feedback" can also be changed as desired.

  5. Click OK and save changes
  6. Rebuild the output to test the link across different topics

Attribution:

Last updated:

March 2, 2013

Author:

Lori Okamoto