Hello,
To avoid duplications of values in fields warning;
list all unique values from the warning field of all tiddlers with 2 buttons: Add and Remove. (Add and remove from $(currentTiddler)$ )
<$list filter="[tags:warning[]]" variable=warning-value>
<$button type="button" class="btn btn-secondary btn-mini" >
<$action-listops $field="warning" $subfilter=<<warning-value>>/>
{{$:/core/images/new-button}}
</$button>
<$button type="button" class="btn btn-secondary btn-mini" >
<$action-listops $field="warning" $subfilter=<<warning-value>>/>
{{$:/core/images/delete-button}}
</$button>
<<warning-value>>
</$list>
1) When the value is added to the field, the square brackets are missing. How do I ensure that the value is noted between square brackets?
2) I am unable to remove the value from the field.
$subfilter="-123" is working. But how do I get it to work referring to <<warning-value>>?
3) It would be totally awesome if I had a search function. By replacing <$list filter with;
<<list-search filter:"[tags:warning[]]" placeholder: "Search field warning">>
Which works fine on its own but I can't get it implemented.
Can somebody please help me out?