This is a stripped-down version of a single section of Grok TiddlyWiki, optimized for fast loading and readability by search engines. Some features are missing.

For the full Grok TiddlyWiki experience, please visit the wiki version of this page.

Ex:FamilyRadioButton/answer

5th March 2026 at 7:31pm

Here's a simple version that just shows the phone number:

View phone number for family member: <$list filter={{!!family}}><$radio tiddler="$:/temp/FamilyContact">> value=<<currentTiddler>>>&nbsp;<<currentTiddler>></$radio>&ensp;</$list>

<$let stateTiddlerName="$:/temp/FamilyContact">>>
  <$transclude tiddler={{{ [<stateTiddlerName>get[text]] }}} field="phone"/>
</$let>

Notice that we don't transclude the tiddler $:/temp/FamilyContact itself, like <$transclude tiddler="$:/temp/FamilyContact"/>, we transclude the transcluded value of $:/temp/FamilyContact (using the filter [<stateTiddlerName>get[text]]). You might have to think about this for a moment: we stored the name of the selected contact in the tiddler $:/temp/FamilyContact, so we don't want to transclude the tiddler $:/temp/FamilyContact – we would be trying to get the value of the phone field of $:/temp/FamilyContact itself (which is presumably empty). Instead, we want to transclude the phone field of the tiddler which is named within that tiddler (i.e., the contact tiddler we selected). This means we effectively have to transclude twice.

Note that this implementation has a small problem: because we're using a single temp tiddler, if you have multiple contact tiddlers in your wiki open, the radio buttons of all of them will share state, so when you click one of them, all of the other tiddlers will switch to displaying a different family member as well (possibly one that doesn't exist for that tiddler). We'll learn how to fix this in the Qualification section of chapter 8.

Go to question: Ex:FamilyRadioButton