Is it possible to add some default values to end of note?

I was looking at whether I could add a button at the top of a note, that would automatically add a row to a table in that note with predefined values (e.g. Dataview inline properties, but allowing me some form inputs). However as far as I can see I have to provide an actual line number to insert text,there is no “append” option. Any ideas? What I’d really like to do is have a button claled “Add transaction”, that adds the following cod eto the end of the note:

| date:: date | action:: market-buy | quantity:: number | price:: number | total::number |

I tried this but it doesn’t work:

label: Add transaction
icon: ""
hidden: false
class: ""
tooltip: ""
id: trade-buy
style: default
actions:
  - type: insertIntoNote
    line: 999
    value: "| date:: date | action:: market-buy | quantity:: number | price:: number | total::number |"
    templater: false