Can you set TWO $:/config tiddlers from one Select?

I made a simple Select to set “OutlineOffset” …

<$select tiddler='$:/config/BitmapEditor/OutlineOffset' default="GAP" tooltip='outline offset'>
 <option disabled>GAP</option>
 <option>0</option>
 <option>5px</option>
 <option>10px</option>
 <option>15px</option>
 <option>30px</option>
</$select>

But I also need to set the same value in “ImageMargin”.

Q: Is it possible to set BOTH from one Select?

TT

Yes, you can set an action on the select widget. Perhaps after the selection you can assign the value selected and stored in $:/config/BitmapEditor/OutlineOffset to the additional location.

@BurningTreeC’s resizer solution/plugin includes a widget just for this kind of thing, and I believe also setting two tiddlers to the same value is possible.

Great! How?

I’m still struggling. Any clues appreciated.

TT

I assume this is a field on the current tiddler?

This will do it.

\procedure action-set-tiddler()
<$action-setfield  ImageMargin={{$:/config/BitmapEditor/OutlineOffset}}/>
\end
<$select tiddler='$:/config/BitmapEditor/OutlineOffset' default="GAP" tooltip='outline offset' actions=<<action-set-tiddler>> >
 <option disabled>GAP</option>
 <option>0</option>
 <option>5px</option>
 <option>10px</option>
 <option>15px</option>
 <option>30px</option>
</$select>

Thanks! I understood it. FWIW, my final version …

\procedure action-set-tiddler()
<$action-setfield 
 $tiddler="$:/config/BitmapEditor/ImageMargin"
 $field="text" 
 $value={{$:/config/BitmapEditor/OutlineOffset}} />
\end
<$select ....