This is how I managed to resolve my issue and get the submit button to appear to the right of the email field. Now all is left is to style it. Additional info that may be helpful, i used the HubSpot Legacy forms and used the raw html to remove the default formatting that HubSpot applies.
#hsForm_FORM-ID-GOES-HERE {
display: flex !important;
gap: 10px;
align-items: center; /\* Vertical alignment \*/
padding: 0 !important;
max-width: 500px;
}
/* TARGETS THE FIELD WRAPPER AND OVERRIDE BLOCK BEHAVIOR */
#hsForm_FORM-ID-GOES-HERE .hs-form-field {
flex-grow: 1;
flex-basis: 70%;
margin-bottom: 0 !important;
width: auto !important;
}
#hsForm_FORM-ID-GOES-HERE input[type=“email”] {
width: 100% !important;
}
/* TARGETS THE BUTTON WRAPPER AND OVERRIDE BLOCK BEHAVIOR */
#hsForm_FORM-ID-GOES-HERE .actions {
flex-shrink: 0;
flex-basis: 30%;
width: auto !important;
margin-left: 0 !important;
margin-top: 0 !important;
}
#hsForm_FORM-ID-GOES-HERE input[type=“submit”] {
width: 100% !important;
}
/* HIDE LABEL */
#hsForm_FORM-ID-GOES-HERE label {
display: none !important;
}
<div id=“hubspot-inline-form-container”>
\</div>
<script charset=“utf-8” type=“text/javascript” src=“https://js.hsforms.net/forms/embed/v2.js”></script>
<script>
// The script now runs immediately after the container div is defined
hbspt.forms.create({
portalId: "YOUR-PORTAL-ID",
formId: "YOUR-FORM-ID",
region: "na1",
// Specify the unique ID target
target: "#hubspot-inline-form-container",
// Essential for unstyled forms
css: ""
});
</script>