On Saturday, June 12, 2021 at 11:14:07 AM UTC-7 [email protected] 
wrote:

>  <$select
> field="blocker"…>
> <$list filter='[!is[system]!status[completed]tag[task]sort[title]]'>
> <option><$view field= 'title'/></option>
> </$list>
> </$select>
> can i get the value chosen from the drop list to populate with brackets in 
> the "blocker field "  ?
>

Try this: 
<$vars lb="[[" rb="]]">
<$select field="blocker" default="select a task...">
   <option disabled>select a task...</option>
   <$list filter='[!is[system]!status[completed]tag[task]sort[title]]'>
      <option value={{{ [{!!title}addprefix<lb>addsuffix<rb>] }}}>
         <$view field= 'title'/>
      </option>
   </$list>
</$select>
</$vars>

Note:
* The $vars defines two variables that contain the literal "[[" and "]]" 
text
* The $vars is needed because you can't use literal square brackets as text 
within the filter syntax, since they would be interpreted as part of the 
filter syntax itself (i.e., you can't write ...addprefix[[[]... or 
...addsuffix[]]]...)
* The option entries use the value=... parameter with filtered transclusion 
syntax to add the bracket prefix and suffix around the selected value

enjoy,
-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6d3395bc-134a-4798-b9c9-c05903bd19dcn%40googlegroups.com.

Reply via email to