I feel certain that I have missed something obvious but this has me stumped so…
I am tracking several individuals playing a game. There is a tiddler for each player’s scores in fields designated score01, score02, etc. Frequently, a player’s score hasn’t changed between the recording points, and I currently have to copy the entry to the next field manually. I have been trying to create a button that, when clicked, would copy the entry to the next field.
The field I am copying and where I am copying the value to change, as time passes.
So far, every attempt I have made has failed. The heart of the problem seems to be in this subroutine, which shows my latest attempt:
\define copy-field()
<$wikify name="targetfield" text='{{Table Display!!field1}}' >
<$wikify name="newvalue" text='{{!!{{Table Display!!field2}}}}' >
<$button>
<$action-setfield $field=<<targetfield>> $value=<<newvalue>> />
<<newvalue>> to <<targetfield>>
</$button>
</$wikify>
</$wikify>
\end
The new value and the target field show correctly on the button, but what gets placed in the target field if something like {{!!score02}} rather than the value.
If you need a fuller picture of what I am doing you can find the full wiki at https://tableproblem.tiddlyhost.com/
Can someone tell me what I am doing wrong?