Hello,

This is what I want:


   - A select field which is populated with each unique value of the text 
   field from a set of widgets (done)
   - An input field that allows you to enter a new value that does not 
   exist already , hence, it is not in the list (done)
   - When you click on a Create button it creates a new tiddler with the 
   selected value (done)
   - The input field is hidden unless the "other" option is selected on the 
   select widget, (done with problems)
   - If you write anything on the hidden input field it takes precedence 
   (¿?)


The problem is that the hidden input field modifies the same field that 
makes it visible, so at the the very first keystroke it gets hidden.
The only solution that comes to my mind is to use a different field for the 
free text input, and use two different buttons to create the new tiddler. 
One button that uses the field that is modified by the select widget, and 
another button that uses the field that the hidden input field edits. Of 
course I can show/hide those buttons based on the selected value. I find 
this solution a bit verbose and not DRY, because it implies a lot of 
duplicated boilerplate for each button.

Any other ideas?

Thanks in advance.

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2d7264b8-aba6-46cb-8ff4-ce5d5f7e617a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to