Greetings,
This is my first post to this group. I only recently found TW and I am finding it to be an incredible tool for creating a dynamic map of a system I work with.
Here's the question: We have several hundred units that are all very similar in type and function that are assigned to different locations. I want users to be able to create a new tiddler based off of a template. I am using tabs within a basic tiddler to display the detailed information...
Anyhow, I am using the Radio widget to list options for each unit. For example: a unit can be assigned to Box 1, Box 2, Box, 3, Box 4 or Box 5, but only 1 box and if it is assigned to a box it can't be assigned to any of the other boxes...a Radio Button. The widget works great.
But, I also use the tags of a unit in another tiddler to list all of the units that are in a particular box. If I have 50 units that users have used the radio buttons to say those units are in Box 1, I then use a tag on that unit to list in another Tiddler called Box 1...
What I would like to do is, if a user selects Box 1 in the Radio Buttons, the action would also create a tag for that unit that indicates the tiddler is associated with Box 1.
I get it to work with the checkbox widget:
<$checkbox field="box" checked='[[Box 1]]' tag="Box 1"> Box 1</$checkbox>
The tag gets added to the tiddler when the box is checked but, this means that a user can check all available boxes.
The radio button allows me to limit them to only selecting one box. I tried this:
<$radio field="box" value='Box 1' tag="Box 1"> Box 1</$radio>
<$radio field="box" value='Box 2' tag="Box 2"> Box 2</$radio>
The field is filling in correctly, but I can't figure out how to get it to create a tag when the button is selected.
Is there a way to get the radio widget to create a tag?