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

2nd May 2021 at 11:07am

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

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

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

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 it presumably does not have). 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.

Go to question: Ex:FamilyRadioButton