Hi,
Any way to implement an “autocomplete=off” of html, to incorporate the HubSpot form? I need the field to be always typed, without any type of browser autocompletion or history.
Thanks!
Hi,
Any way to implement an “autocomplete=off” of html, to incorporate the HubSpot form? I need the field to be always typed, without any type of browser autocompletion or history.
Thanks!
@DanielSanchez I don’t think there is a setting for this built-in to HubSpot forms. However, you could always add the attribute with javascript after the forms loads on the page assuming you aren’t using one of the iframe embeds. For example:
window.addEventListener('message', event => {
if(event.data.type === 'hsFormCallback' && event.data.eventName === 'onFormReady') {
$('form').attr('autocomplete', 'off');
}
});
This code doesn’t work for me, have an alternative way to disable it?
I used the setTimeout to set the checkbox as false but on submitting the HubSpot pre-populates automatically even if the user doesn’t change the input.