Skip to content
John Bieling edited this page Jan 31, 2020 · 4 revisions

Set subject dynamically, for example based on the current subject or any other Quicktext variable.

Script

let subject = this.mVariables[0];

if (this.mWindow.document.getElementById('msgSubject')) {
  this.mWindow.document.getElementById('msgSubject').value = subject;
}

Usage

Adding "RE: " to the current subject:

[[SCRIPT=SetSubject|RE: [[SUBJECT]]]]