Well, that solved more than one problem, :-)

Thank you!

Eric Shulman schrieb am Samstag, 22. Mai 2021 um 11:57:53 UTC+2:

> On Saturday, May 22, 2021 at 1:16:55 AM UTC-7 JM wrote:
>
>> Status: <$select field='Status' default='new'>
>> <option disabled>new</option>
>> <option>A</option>
>> <option>B</option>
>> <option>C</option>
>> <option>D</option>
>> </$select>
>>
>
> The $select widget creates a field with the specified name (i.e. 
> "Status").  If you re-display the tiddler *during the current session* , 
> the selected value ("A") will be shown in the $select list, as you 
> expected.  However, all field names *must* be lower case to comply with the 
> HTML syntax used to store them in the file.  So, when you save and reload 
> the file in your browser, the fieldname has been automatically converted to 
> lower case (i.e., "status") and when you then display the tiddler, it will 
> show the default value (i.e., "new"), since the stored tiddler fieldname, 
> "status", no longer matches the specified tiddler fieldname, "Status".
>
> The solution is to always use only lower case field names.
>
> -e
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/39baa852-2567-4610-b709-ed54a470e8fcn%40googlegroups.com.

Reply via email to