Dear friends,
a little help with this code: how can I get the listitem value placed in the org field enclosed in double square brackets?
<table id="personTable" class="sortable">
<thead>
<tr>
<th>Επιλογή</th>
<th>Φορέας</th>
</tr>
</thead>
<tbody>
<$list filter="[tag[person]sort:org[]]" variable="listitem">
<tr>
<td>
<$radio field="org" value=<<listitem>> checked=<<listitem>> unchecked=""></$radio></td><td><<listitem>></td>
Thanks in advance
ts(sklpns)
If I understand the intention correctly, you’re looking for format:titlelist[] (https://tiddlywiki.com/#format%20Operator), which surrounds the input tiddlers with double square brackets unless they have no spaces.
If you use <$checkbox> instead of <$radio>, you can use listField="org" rather than field="org", in which case the square brackets (if needed) will be handled seamlessly. I am a little confused because I see “checked” and “unchecked” but those aren’t available on the <$radio> widget which you’re using.
Yes, you’ re right, the “checked” and “unchecked” part was a remnant from a piece of checkbox code I had modified. Thank you for your swift response!!!