The action-setmultiplefields widget is an action widget that assigns multiple fields to a tiddler where the names and values of the fields are specified as separate filters. ActionWidgets are used within triggering widgets such as the ButtonWidget.
The action-setmultiplefields widget is invisible. Any content within it is ignored.
|$tiddler||Optional title of the tiddler to modify (defaults to the current tiddler)|
|$fields||Optional filter evaluating to the names of a list of fields to assign. Either |
|$indexes||Optional filter evaluating to the names of a list of indexes to assign. Either |
|$values||Filter evaluating to the values to be assigned to the fields or indexes|
|$timestamp||Specifies whether the timestamp(s) of the target tiddler will be updated (modified and modifier, plus created and creator for newly created tiddlers). Can be "yes" (the default) or "no"|
<$button> <$action-setmultiplefields $tiddler="HelloThere" $fields="[list[Days of the Week]addprefix[day-]]" $values="[list[Days of the Week]]"/> Click me! </$button>
That renders as: