Try a checkbox value of 1.
Yes and no are strings. SF generally expects 1 or 0/null. But that really depends on the field type in SF.
Thread Starter
toolie
(@toolie)
Good point; I should have thought of that. Nevertheless, I tried entering a 0 and a 1 in the form settings, and neither will show up on the front side of the form. So I’m guessing that since the form isn’t responding to what’s set on the back side, it won’t transmit correctly to Salesforce whether the value is 0 or 1.
Here’s what the setup looks like in Salesforce: it is a checkbox type and the default setting is unchecked.
http://fileexchange.s3.amazonaws.com/public/20141203-checkbox-setup.png
Ideas?
Toolie
A 1 for the value should work fine. Something else must be off. What do your form settings look like?
Thread Starter
toolie
(@toolie)
I’m assuming you mean the settings for the checkbox:
http://fileexchange.s3.amazonaws.com/public/20141204-checkbox-settings-in-plugin.png
Here I show it with the default value “checked” but on the front side, it ignores that value:
http://fileexchange.s3.amazonaws.com/public/20141204-checkbox-setting-ignored.png
Thoughts?
Toolie
Pre-checked checkboxes are not supported at this time.
Thread Starter
toolie
(@toolie)
I don’t want the checkbox pre-selected; I was just demonstrating that neither checked nor unchecked is working.
If checked by the user when completing the form, the data is not transferred successfully to Salesforce.
Can you fix?
Toolie
Your field name appears to be incorrect in the plugin.
Thread Starter
toolie
(@toolie)
Can you elaborate, Nick? I am running out of time…
Toolie
Your field name in SF is Request_VM_or_Demo
Your field name in the form is … not Request_VM_or_Demo
(it looks like an internal SF id of some kind).
Try using the field name.
Thread Starter
toolie
(@toolie)
I originally set up this form back before you were able to use API names; that’s why I was still using it.
I refer you to #5 in the very first post in this thread: I already tried using the API name (Request_VM_or_Demo__c). I tried using it again just now — twice — and it still does not transfer the checkbox value.
http://fileexchange.s3.amazonaws.com/public/20141204-API-name-in-Salesforce.png
http://fileexchange.s3.amazonaws.com/public/20141204-checkbox-doesnt-work-with-API-name.png
Do you have time to re-check the code?
Toolie
The code works — not sure what’s going on with your setup, but I just created a checkbox with the exact same name as yours, and my demo form checked the box in SF as expected.
If dropbox could be bothered to sync it. Ugh.
Value *must* be 1 to check a checkbox.
0 = unchecked, so even if you send a 0… it won’t check the box. Hence why your tests failed (I think).
Did you ever get this working?