This is a frequent issue with singlecheckboxes, too. Simply put a hidden form field with a blank value AFTER =the optional checkbox and it will work fine.This way, if people uncheck the checkbox (causing it to not be submitted =at all), a blank is submitted for that field,wiping out the prior choice.=A0
If the blankhidden value is AFTER the other one, it will not have an effect on a stri=ng of [formvariables] submitted; the first onewill be written to the db, and anything later ignored.
Same principle works for variables displayed on the page t=oo; first one takes precedence. Just put thehidden variable at the end of your form.
Terry
On Fri, 4 Sep 2009 07:54:57 -0400
Sys=tem Administrator <bharrington@1choicerealty.com>wrote:
> when posting data w/a form how to you get the value to
>be nothing if nothing issubmitted
> and not show up as "[fieldname]"...?
>
>= also... anyone have a chance to look at theRETS
>connection file I sent in...?
> ---------------------=------------------------------------
>This message is sent to you because you are subscribed
>to
>= the mailing list<talk@webdna.us>.
> To unsubscribe, E-mail to: <talk-leave=@webdna.us>
> archives:http://mail.webdna.us/list/talk@webdna.us
> old archives: http://de=v.webdna.us/TalkListArchive/
> BugReporting:
>http://forum.webdna.us/eucabb.html?page=3Dtopics&c=ategory=3D288
=A0
This is a frequent issue with singlecheckboxes, too. Simply put a hidden form field with a blank value AFTER =the optional checkbox and it will work fine.This way, if people uncheck the checkbox (causing it to not be submitted =at all), a blank is submitted for that field,wiping out the prior choice.=A0
If the blankhidden value is AFTER the other one, it will not have an effect on a stri=ng of
[formvariables] submitted; the first onewill be written to the db, and anything later ignored.
Same principle works for variables displayed on the page t=oo; first one takes precedence. Just put thehidden variable at the end of your form.
Terry
On Fri, 4 Sep 2009 07:54:57 -0400
Sys=tem Administrator <bharrington@1choicerealty.com>wrote:
> when posting data w/a form how to you get the value to
>be nothing if nothing issubmitted
> and not show up as "[fieldname]"...?
>
>= also... anyone have a chance to look at theRETS
>connection file I sent in...?
> ---------------------=------------------------------------
>This message is sent to you because you are subscribed
>to
>= the mailing list<talk@webdna.us>.
> To unsubscribe, E-mail to: <talk-leave=@webdna.us>
> archives:http://mail.webdna.us/list/talk@webdna.us
> old archives: http://de=v.webdna.us/TalkListArchive/
> BugReporting:
>http://forum.webdna.us/eucabb.html?page=3Dtopics&c=ategory=3D288
=A0
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...