I can only add things via crude copy/paste operations. I liked the (Saturday) in the tooltip over the boxes but for my running list I only needed to capture m/d/yy. So I created a clone of var darray2 with the same initial definition as darray
var darray2= ["O","O","O","O","O","O","O","O","O","O"]; Then I could add a different date format to darray2: darray2[10-i]=mon+"/"+day+"/"+yr; With tip2=darray2[i], the buttons can append (or remove) m/d/yy in the field "datestamp". (When adding multiple dates, they do need to be clicked in order from oldest to most recent - if that is what you want - since a sort[] would not treat them as actual dates.) for (i=0 ; i<10 ; i++) {//set tooltip to matching darray entryvar tip=darray[i];var tip2=darray2[i];if (barray[i]=="X") {// If it was an X then use the modified cancel button output += '<$button class="tc-btn-invisible tc-tiddlylink" tooltip="'+tip+'"><$action-listops $field="datestamp" $subfilter="-'+tip2+'"/><$action-setfield $field="toggled" $value="'+i+'" />{{$:/core/images/done}}</$button> ' ; } else {// not an X so must be an O use modified circle output += '<$button class="tc-btn-invisible tc-tiddlylink" tooltip="'+tip+'"><$action-listops $field="datestamp" $subfilter="'+tip2+'"/><$action-setfield $field="toggled" $value="'+i+'" />{{$:/core/images/open}}</$button> ' ;} } // end for i loop cmari On Saturday, June 17, 2017 at 5:20:05 AM UTC-7, Stephen Kimmel wrote: > > On Friday, June 16, 2017 at 11:10:44 PM UTC-5, cmari wrote: >> >> Wow, that is terrific, thank you so much! I will use this daily. >> I especially appreciate the really clear comments. That made it easy for >> me to add a field that takes advantage of the tooltip and captures the >> running list of dates. >> cmari >> >> You are most welcome. It was my pleasure to work on it. > > I am open to further modificatons so I would like to see the changes you > made and hear any ideas for changes you'd like to see made. > > Stephen > -- 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/f37a4574-0e82-4eba-adfd-50751a20d844%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.