RE: [tw] Re: [TW5] How to use checkbox to add to list field

2016-02-24 Thread infurnoape
Thank you so much Eric, I will modify to correct it. Your help always makes a big difference. Now all I need is a new template to display the buttons from the list field but that would be a different topic. Happy Connecting. Sent from my Sprint Samsung Galaxy S® 5 Original

[tw] Re: [TW5] How to use checkbox to add to list field

2016-02-23 Thread Eric Shulman
On Tuesday, February 23, 2016 at 9:28:54 PM UTC-8, Andrew wrote: > > ... > ... The HTML syntax for a checkbox does *not* have an "unchecked" attribute. Also, for cross-browser compatibility, use a value of "checked"... not "true". Thus: and -e > -- You received this message

[tw] Re: [TW5] How to use checkbox to add to list field

2016-02-23 Thread Andrew
Thank you all. Not sure what lingo-base() is for yet, and I have to make it more readable, so if anyone wants to help with that it would be much appreciated, but I ended up with: \define lingo-base() $:/language/TiddlerInfo/ \define add() [[$(currentTiddler)$]] \define remove()

[tw] Re: [TW5] How to use checkbox to add to list field

2016-02-23 Thread Scott Simmons (Secret-HQ)
Hmmm. Looking further down the code, I see you're running into the same issue with the <$checkbox> widget, too. You won't be able to run your <> and <> macros within the <$checkbox> widget. (I learned this the hard way myself.)

[tw] Re: [TW5] How to use checkbox to add to list field

2016-02-23 Thread Eric Shulman
On Tuesday, February 23, 2016 at 4:24:52 PM UTC-8, Andrew wrote: > > I'm trying to add to the list field using the checkbox widget and can't > figure out how to write it. > The $checkbox widget doesn't invoke action widgets like a $button does... it only allows you to set/clear a field value or

[tw] Re: [TW5] How to use checkbox to add to list field

2016-02-23 Thread Matabele
Hi Andrew The $checklist widget might meet your requirements -- the widget extends the functionality of the $checkbox widget to handle lists in ordinary fields and indexes. There is, therefore, no need to use the $listops widget, provided that your requirement is only to toggle the value of

[tw] Re: [TW5] How to use checkbox to add to list field

2016-02-23 Thread Scott Simmons (Secret-HQ)
Hi, Andrew — I think the problem stems from trying to pass a variable ($(currentTiddler)$) into the <$action-listops> widget. I'm not sure how to get around that using only core code — but if you install Tobias's setvars plugin ( http://tobibeer.github.io/tw5-plugins/#setvars ), you can use