Thank you so much! Thank you, thank you, thank you! On Thursday, June 17, 2021 at 3:38:32 AM UTC-4 Eric Shulman wrote:
> On Wednesday, June 16, 2021 at 11:56:53 PM UTC-7 iamdar...@gmail.com > wrote: > >> My question is if there is a way to show a drop down field, with the >> options prepopulated, and have it act like the edit-text fields above vs >> overwriting the entire tiddler immediately with the selection? >> > > When you define your $select widget, you need to *specify the tiddler=... > and field=... parameters*, just as you do with the $edit-text widget. > Otherwise, the $select widget defaults to changing the "text" field of the > current tiddler. > > Thus: > <$select tiddler=<<temp>> field="organization">{{OrgList}}</$select> > Where the "OrgList" tiddler's text field has content like this: > <option>Foo</option> > <option>Bar</option> > <option>Baz</option> > <option>Mumble Frotz</option> > <option>Gronk</option> > > Alternatively, you can simplify the OrgList tiddler's contents by using a > $select widget containing a <$list> widget, like this: > <$select tiddler=<<temp>> field="organization"> > <$list filter={{OrgList}} > variable="org"><option><<org>></option></$list> > </$select> > Where OrgList contains just a white-space separated list of values, like > this: > Foo Bar Baz [[Mumble Frotz]] Gronk > (note the use of doubled square brackets surrounding values that contain > spaces) > > As a third alternative, you could store the "OrgList" in a field of the > current tiddler. Thus: > <$select tiddler=<<temp>> field="organization"> > <$list filter={{!!orglist}} > variable="org"><option><<org>></option></$list> > </$select> > where the "orglist" field value contains a white-space separated, > bracketed list as shown above. > > 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3bc2fdce-7a44-44be-a94a-2b536960362dn%40googlegroups.com.