I’ve gone and looked at the source for collected-forms.js
They check for the following labels:
, s = [“credit card”, “card number”, “expiration”, “expiry”, “ccv”, “cvc”, “cvv”, “secure code”, “mastercard”, “american express”, “amex”]
and the following for names:
, c = [“cc-num”, “cc-number”]
in a function called isSensitive which is used in a function called rejectIfAnyFieldSensitive
So I’ve managed to get the form to not submit with the following markup:
<label for="cc-num" class="hidden">credit card HubspotCollectedFormsWorkaround https://community.hubspot.com/t5/APIs-Integrations/How-to-stop-collected-forms-from-collecting-a-form/m-p/299172#M28102</label>
<input name="cc-num" class="hidden" required="" value="HubspotCollectedFormsWorkaround" id="cc-num">
Would be great if this could be added to the documentation