How to copy the value of "currentField"

I’m making some changes to the tiddler $:/core/ui/EditTemplate/fields.
I added a button near the one that deletes fields one which (should) copy the value of the field next to it.

<$button class="tc-btn-invisible tc-small-gap-right" tooltip="Copy field's value">
<$action-sendmessage $message="tm-copy-to-clipboard" $param=<<currentField>>/>
{{$:/core/images/copy-clipboard}}
</$button>

This copies the field name.
How can I make it copy its value instead?

Thanks for your patience

1 Like

Change this:

<$action-sendmessage $message="tm-copy-to-clipboard" $param=<<currentField>>/>

to this:

<$action-sendmessage $message="tm-copy-to-clipboard" $param={{{ [<currentTiddler>get<currentField>] }}}/>
3 Likes

Sorry if I answer only now. I really appreciate, thanks so much for the help (again)!
: )

1 Like