How to Pre-Fill Boolean Fields as Radio Buttons in Forms?
Hello,
We want to pre-fill boolean fields in a form and display them as radio buttons on a landing page. However, despite enabling "Form Pre-Fill" at the admin: landing page level and setting the specific field to "Pre-Fill: Enabled" in the form, the radio buttons are not being pre-checked with the stored values.
Below is our test scenario:
- A boolean field (e.g., Subscribe_Newsletter) is set up as radio buttons.
- The radio button options are:
- Option 1: Display Value: "Agree", Stored Value: "true"
- Option 2: Display Value: "Disagree", Stored Value: "false"
- If the value of Subscribe_Newsletter is already stored as true in the Marketo database, we expect the "Agree" radio button to be pre-checked when the form loads.
Is there a way to achieve this? We also tried adding a script to handle this, but it still doesn't work.
I’ve read that boolean fields might not support Pre-Fill—could that be the issue? ![]()
Any guidance would be greatly appreciated.
This post was edited by a moderator for accuracy.