[pmwiki-users] Multiple checkboxes

kirpi at kirpi.it kirpi at kirpi.it
Mon Sep 21 16:35:28 CDT 2015

Setting a form with multiple checkboxes and storing a comma separated
list of hobbies (just an example) in a ptv proved to be a little
tricky, but many months ago I found that this approach works just

(:input hidden name=$:Hobby "":)
(:input checkbox $:Hobby[] Travels (:if matchstring '/Travels/'
"{{$FullName}$:Hobby}":)checked(:ifend:):) Travels\\
(:input checkbox $:Hobby[] Photography (:if matchstring
'/Photography/' "{{$FullName}$:Hobby}":)checked(:ifend:):)
(:input checkbox $:Hobby[] Music (:if matchstring '/Music/'
"{{$FullName}$:Hobby}":)checked(:ifend:):) Music

Actually, it did work until recently :-(

Now, for some reason, it does not work any longer: if I edit the form
(I use Fox) a second time, all the data are reset.
Is it perhaps due to some changes in the latest version of Pmwiki?



More information about the pmwiki-users mailing list