So I've worked out a solution based on Dave Gifford's example[1] of
using the SelectWidget to set fields.

The dropdown menu only appears in View Mode of course, but changes made
show up in the fields in Draft Mode, so I guess it's doing what I need
it too. I'd still rather the changes could only be made in Draft Mode,
but this seems to work.

I now have the code below[1] to set the value field for 'probability',
and a similar one to set the value for 'severity'.

My next step is to place the code for each group of values in a separate
tiddler, so that I can reference them (transclude them?) into each
tiddler that I require values set for. I'm doing this so I can easily
change or update the values across multiple tiddlers.

Any hints or tips appreciated!

Cheers,

David.

[1]<$select field='probability'> <option><$action-setfield
   probability/>1-rarely</option> <option><$action-setfield
   probability/>2-unlikely</option> <option><$action-setfield
   probability/>3-sometimes</option> <option><$action-setfield
   probability/>4-likely</option> <option><$action-setfield
   probability/>5-frequently</option> </$select>

On Mon, May 11, 2015, at 03:48 PM, david... wrote:
> Hi List,
>
> Can I use a drop-down selector for the Fields, in Draft Mode? Is it
> possible?
>
> I've added two fields ('Probability' and 'Severity') to my default
> 'New Tiddler' template, by following Tobias Beer's excellent guide to
> Create a Tiddler from a Template[2].
>
> I'd like to be able to select the value for each field from a
drop-down menu selector. Ideally, the selector would appear when the
tiddler was in Draft Mode.
>
> I thought I could use the instructions given
in tiddlywiki.com#SelectWidget. I guess this will only show the code in
Draft Mode, though. Is that correct, or is there some way to use the
SelectWidget in Draft Mode, too?
>
> By the way, what is the opposite of Draft Mode? Is it View Mode,
> Presentation Mode, or something else?
>
> Cheers,
>
> David.
>
>
>


> --
> 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
> tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send
> email to tiddlywiki@googlegroups.com. Visit this group at
> http://groups.google.com/group/tiddlywiki. To view this discussion on
> the web visit
> https://groups.google.com/d/msgid/tiddlywiki/1431323295.348741.265289241.615C04B1%40webmail.messagingengine.com[3].
> For more options, visit https://groups.google.com/d/optout.



Links:

  1. https://groups.google.com/d/msg/tiddlywiki/TaQoXoRq2aQ/DY5qYXUZiiwJ
  2. http://tobibeer.github.io/tb5/#Create%20Tiddler%20From%20Template
  3. 
https://groups.google.com/d/msgid/tiddlywiki/1431323295.348741.265289241.615C04B1%40webmail.messagingengine.com?utm_medium=email&utm_source=footer

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1431464023.1601131.267099561.516CCADB%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to