Hey, I'm relatively new to tiddlywiki and unsure how I can achieve one thing, maybe someone can help me.
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.
Anyway this can be done? Thanks in advance for your help! :)
(I posted the same on the subreddit but I'm not sure if that place is active, so I'm posting here as well)
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.
<$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>
\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[]]">>\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[]]">>