Form single checkbox appearing as list

Hello -
I have a custom hubl/html page that has multiple variable areas, one of which is a form. Everything looks great until I add a single checkbox field to my form. It’s coming out formatted as a list. If I add the form directly using its embed code, it appears as it should.
The Hubl code I’m using to create the variable form is the default from the reference: {% form “my_form” label=“Form”, custom_form_html=None, no_title=False, title=“” %}. I also tried using {% module “form” path=“@hubspot/form” %} but it does the same thing.

I’m just not seeing or understanding why this is happening.
TIA!
Asia

Hi @asiaferguson,

Just to confirm, is the issue what is shown in the screenshot below?

If so this can be rectified using some CSS to style as needed.

ul.inputs-list {
 list-style-type: none;
}
.inputs-list .hs-form-booleancheckbox input {
 display: inline-block;
 margin: 0;
 width: auto;
}
.inputs-list .hs-form-booleancheckbox span {
 display: inline;
 padding: 10px;
}

Resulting in:

Screenshot 2023-08-19 at 11.59.09.png

I hope this helps!

Thank you… it worked! I knew it would be something simple and obvious!