Skip to content

0.36.0

Compare
Choose a tag to compare
@github-actions github-actions released this 30 Mar 00:39

Add a new way to define the note name, using some javascript:

The "Field to use as Note name" can contain @{ ...js ... } with the javascript inside the {...js...}.

The javascript should contain one or more return statements which provide the name of the note.

Two variables are available:
this points to the current record being processed for this note.
dataRoot points to the base of the JSON object that is present within the selected file.

An example would be:

@{return `${(this.state > 0) && dataRoot.pack.states.find(state => state.i === this.state)?.name || "Unknown" }-${this.name}`}