Stopping browser autocomplete in text boxes

Contributor ,
Feb 04, 2021

Copy link to clipboard

Copied

Has anyone found a way to stop the browser autocomplete dropdown choices from being shown on TEBs in a published project? Preferably by adding the form or input autocomplete attribute to the Captivate publish template, but even manually adding it post-publish to every project would be better than nothing. We're seeing the same issues previously reported where if a user picks an item from the autocomplete choices, the form auto submits, causing a loss of data in the record. Primary browsers are Chrome and IE. Thanks!

Views

121

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Advocate ,
Feb 05, 2021

Copy link to clipboard

Copied

I have not had a chance to test this but perhaps you can try this to see if it works.

Place the code as an onEnter action (Execute JavaScript) for the slide where your TEBs are.

 

$("input").attr("autocomplete","off");

 

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Contributor ,
Feb 05, 2021

Copy link to clipboard

Copied

Thanks, but it's not working.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Feb 05, 2021

Copy link to clipboard

Copied

I just tested and one of the only ways was to set it to new-password

 

$("input").attr("autocomplete", "new-password");

 

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Contributor ,
Feb 05, 2021

Copy link to clipboard

Copied

Thanks. Still not working in Chrome here.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Advocate ,
Feb 05, 2021

Copy link to clipboard

Copied

Are you copying and pasting?

Perhaps try deleting the quotes and re-typing them.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jefferbob AUTHOR LATEST
Contributor ,
Feb 05, 2021

Copy link to clipboard

Copied

Good thought, but still not working.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more