Selectwidget to set field?

74 views
Skip to first unread message

David Gifford

unread,
Mar 11, 2015, 12:03:23 PM3/11/15
to tiddl...@googlegroups.com
Hi all,

Does someone have a link to an example of a set field widget inside a select widget, so that I can create a dropdown list that allows me to choose from a short list and set the text of a particular custom field in a tiddler?

Dave

Jed Carty

unread,
Mar 11, 2015, 12:10:04 PM3/11/15
to tiddl...@googlegroups.com
I think this is what you are asking for, I made a pull request to include it in the core, but it isn't part of it yet. And the select widget has some problems so it may not be included until they are fixed. But if you want to try using it here is a demo site.
The restriction is that you can't create the options with a list and have them trigger action widgets. There may be other problems but that is the only one I have found so far.

David Gifford

unread,
Mar 11, 2015, 1:28:22 PM3/11/15
to tiddl...@googlegroups.com
Thanks Jed

Here is what I ended up doing

<$select field='1.area'>
<option><$action-setfield 1.area/>Leadership</option>
<option><$action-setfield 1.area/>Ministry</option>
<option><$action-setfield 1.area/>Support</option>
<option><$action-setfield 1.area/>Orgz</option>
<option><$action-setfield 1.area/>Family</option>
<option><$action-setfield 1.area/>Oersonal</option>
</$select>

<$select field='3.priority'>
<option><$action-setfield 3.priority/>Urgent</option>
<option><$action-setfield 3.priority/>Soon</option>
<option><$action-setfield 3.priority/>Someday</option>
<option><$action-setfield 3.priority/>Waiting</option>
<option><$action-setfield 3.priority/>Reporting</option>
</$select>

<$select field='4.year'>
<option><$action-setfield 4.year/>2015</option>
<option><$action-setfield 4.year/>2016</option>
</$select><br><br>
Reply all
Reply to author
Forward
0 new messages