APIs & Integrations

Not applicable

Apply Required to Target for Customize Form

So I’m passing a variable to the form for selecting images on a webpage for HubSpot to then collect for ordering purposes. How do I make it that it’s required? In the form itself there is the option for hidden and required. We want the variable to be hidden but required that something is chosen. I’m thinking it would just need to have required on the target to make it work. Thoughts?

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Apply Required to Target for Customize Form

Hi @jakedub,

Is this an embedded form, a native HubSpot form, or a custom HTML form? For the first two, it’s not currently possible to make a hidden field required (and vice versa) since a customer cannot enter data to a hidden field to fulfill the requirement. You’d need to validate that an image was selected client side.

0 Upvotes