Action

Meeting Template 2

Last update about 5 years ago - Unlisted

Create a meeting template for taking notes and actions.

Steps

  • script

    // A bit of script to create a new draft and capture the name of the meeting with a prompt that will default the cursor to the input field.
    
    
    //Build the prompt
    const buttonOK = "OK";
    let promptText = Prompt.create();
    promptText.title = "Meeting Information";
    promptText.message = "Enter the name of the meeting.";
    promptText.addTextField("textFieldName", "Name:", "",
    {
    	"wantsFocus": true
    });
    promptText.addButton(buttonOK);
    promptText.isCancellable = false;
    
    //Get the prompt result
    if (promptText.show())
    {
    	if (promptText.buttonPressed == buttonOK)
    	{
    		draft.setTemplateTag("meeting_name", promptText.fieldValues["textFieldName"]);
    	}
    }
    
    // Create new draft
    newDraft = Draft.create();
    
  • script

    // Edit this script area to add tags to the draft
    // Simply add/remove/amend tags as you like
    
    // We created the new draft as 'newDraft' so using that rather than 'draft' to ensure the new draft gets the tags
    
    newDraft.addTag("meeting");
    newDraft.addTag("example tag 1");
    newDraft.addTag("example tag 2");
    
  • script

    // Upate and load the new draft
    
    newDraft.update();
    editor.load(newDraft);
    editor.activate();
  • insertText

    template
    # [[date]] [[meeting_name]]
    
    ## Topic
    
    
    ## Notes & Actions
    
    
    
    ## Summary
    

Options

  • After Success Default
    Notification Info
    Log Level Error
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.