Hey Marketo Nation!
We have a HTML form (with our branding guidelines) that we submit via JavaScript using the Forms API.
We have two Fields we created called 'Relocation' and 'UScitizen' that are of type Boolean.
I add the values to the form using .addHiddenField() method of the Forms API, but I can't get to persist our Boolean Fields (Relocation and UScitizen).
What value do Boolean type Fields accept? We've tried "yes, no", "Yes, No", "true, false", "True, False", true, false (JavaScript boolean values instead of strings).
Thanks in advance!
Solved! Go to Solution.
Use JS strings "yes" and "no".
The method is .addHiddenFields btw (maybe that was just a typo).
I was sending the wrong keys (case-sensitive) ....thanks!