Action
Display Random Line
Steps
-
script
let astrLines = draft.content.split("\n"); draft.setTemplateTag("randomline",astrLines[Math.floor(Math.random() * astrLines.length)]);
-
prompt
promptKey prompt
promptTitle Random Line
promptMessage [[randomline]]
promptButtons OK
includeTextField false
textFieldDefault includeCancelButton true
Options
-
After Success Default Notification Error Log Level Error
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.