<div dir="ltr">Thanks for sharing.<div>It would be really appreciated if you would dd your information to the wike</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 20 December 2014 at 23:11, <a href="mailto:kirpi@kirpi.it">kirpi@kirpi.it</a> <span dir="ltr"><<a href="mailto:kirpi@kirpi.it" target="_blank">kirpi@kirpi.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I recently wanted to adopt some checkboxes in a form derived from Fox Contacts.<br>
Such a form is used both for entering and updating data.<br>
My idea was to have some switches, some easy to use Yes/No fields,<br>
with an immediate "boolean" feeling of On/Off useable for setting and<br>
updating PTVs.<br>
Radio buttons were not interesting as I felt they were better suited<br>
for "real" values (Male/Female) and also they are less compact.<br>
Moreover, I had problems setting defaults values, whereas checkboxes<br>
have a "natural" zero value as a start.<br>
I tried but failed to have them working.<br>
Thanks to Hans, I then learned that checkboxes only send a value if<br>
checked, whereas they send just nothing when not checked. This way,<br>
there is no way to update/zero an already set value just by unchecking<br>
a checkbox.<br>
After some attempts, we found that there is an easy and well-working hack<br>
    (:input hidden $:abc 0:)<br>
    (:input checkbox $:abc 1:)<br>
It is perhaps well known, or perhaps not.<br>
<br>
So, I just wanted to share it<br>
:-)<br>
<br>
Thanks!<br>
<br>
Luigi<br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">____<br><a href="http://kiwiwiki.co.nz">http://kiwiwiki.co.nz</a></div>
</div>