Hi,
i am using the remove suffix operator to remove a trailing “1” in a custom field . now what i have noticed is that the “1” gets removed on first attempt , however if i hit the button again the entire contents of the the custom field are removed. and the operator ignores the criteria i put, and wipes the entire field .
what could i be doing wrong ?
<$button>trim
<$action-setfield $tiddler=<<currentTiddler>> $field=myfield $value={{{ [<currentTiddler>get[myfield]removesuffix[1]] }}}/>
</$button>