Sarah,
I assume that the following happens: the initial value of your checkbox is
0, so its unchecked. The IsDirty property of the html control handling the
checkbox is set to false when loading the form. Checking and un-checking a
checkbox will set IsDirty to true. As the CRM form only passes the dirty
fields to the server, a checkbox that hasn't been touched will not be
included in the post request, so the corresponding value in the database
remains unchanged.
What you can do is the following: in the OnLoad event set the ForceSubmit
property of all checkboxes in question to true, if it is a create form (use
crmForm.FormType to distinguish). I haven't tried it, but in theory it
should populate the database with 0's and 1's. If it doesn't, you may also
need to set the DataValue to false to initialize the fields correctly.
--
Michael
http://www.stunnware.com/crm
----------------------------------------------------------
"Sarah Montgomery" <SarahMontgomery@discussions.microsoft.com> schrieb im
Newsbeitrag news:DEDC6A76-68B3-498E-A8C5-137ABBA86F03@microsoft.com...
|