AnsweredAssumed Answered

What is the HTML value for Boolean fields?

Question asked by Joon Park on Mar 13, 2017
Latest reply on Mar 13, 2017 by Joon Park

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!

Outcomes