Laru, Inspired by Eric I just turned this into re-usable macros, you can place in a tiddler tagged $:/tags/Macro In the domain example it returns values already in the domain field of other tiddlers
\define radio-field(fieldname values-filter) <$list filter="$values-filter$" variable=value> <$radio field="$fieldname$" value=<<value>> > <<value>></$radio> </$list> \end <<radio-field section "A B C">> <<radio-field domain "[each[domain]get[domain]sort[]]">> and here is a select version (less space) \define select-field(fieldname values-filter) <$select field="$fieldname$"> <$list filter="$values-filter$"> <option value=<<currentTiddler>>><$view field='title'/></option> </$list> </$select> \end <<select-field section "A B C">> <<select-field domain "[each[domain]get[domain]sort[]]">> Regards Tony On Monday, 20 August 2018 05:34:58 UTC+10, Laru Rau wrote: > > Thank you Eric, it's working perfectly! :) > > On Sunday, August 19, 2018 at 7:51:24 PM UTC+2, Eric Shulman wrote: >> >> On Sunday, August 19, 2018 at 10:01:55 AM UTC-7, Laru Rau wrote: >>> >>> I want to have multiple radio buttons in one section and a text section >>> where different text is displayed, depending on which button is selected. >>> This selection should be persistent when closing and reopening my >>> tiddlywiki. >>> >> >> give this a try: >> >> <$radio field="section" value="1"> One</$radio> >> <$radio field="section" value="2"> Two</$radio> >> <$radio field="section" value="3"> Three</$radio> >> >> <$reveal state="!!section" type="match" text="1"> >> This is PART ONE >> </$reveal> >> <$reveal state="!!section" type="match" text="2"> >> This is PART TWO >> </$reveal> >> <$reveal state="!!section" type="match" text="3"> >> This is PART THREE >> </$reveal> >> >> Hopefully, that should get you started in the right direction... let me >> know how it goes... >> >> enjoy, >> -e >> Eric Shulman >> TiddlyTools.com: "Small Tools for Big Ideas!" (tm) >> InsideTiddlyWiki: The Missing Manuals >> > -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/acbdb5d4-ec5e-48e1-b78e-2ff257ca0a17%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

