So in this example (see attached), how would you have the macro set that 
initial default value if there is no existing value already there?

Would there have to be a javascript if then statement within 
the <$select></$select> tags?

On Monday, February 27, 2017 at 12:36:56 PM UTC-7, Jeremy Ruston wrote:
>
> Hi Jeff
>
> Hi guys:  thanks for the suggestions.  However, it seems to be not quite 
> so simple.  Simply setting the default selection in the widget doesn't seem 
> to actually activate that selection.  I assume I have to actually update 
> the text of the state tiddler being used by the widget so it activates that 
> selection.
>
>
> The description of the “default” attribute of the select widget is subtle:
>
> > Default value to be used if the tiddler, field or index specifies a 
> missing value
>
> So, what the attribute does is provide the value to be displayed by the 
> select widget if the tiddler/field/index is missing.
>
> > I would love to just say, whichever is the first entry in the list, 
> select that by default.  
>
> Setting the select widget to a particular value is accomplished by 
> assigning that value to the tiddler field/index that is bound to the 
> widget. So, you’d need to explicitly assign the right value to that 
> field/index in order to select the default that you want.
>
> Best wishes
>
> Jeremy
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5893ed43-5440-4610-badd-a6a30308f4ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to