Fix guides · UX & conversion
How to fix “Prevents users from pasting into input fields”
Blocking paste in password, email or confirmation fields makes them harder to use and pushes people toward weaker passwords. How to remove it.
- Time to fix
- 10–20 minutes
- Skill needed
- Developer
- Who notices
- Anyone using a password manager, and people who find typing difficult
Why it matters
Some forms stop visitors pasting into fields, often to force them to retype an email or password. It doesn't make anything safer, and it gets in the way of password managers.
People with motor or cognitive disabilities often rely on pasting, as do anyone copying a long code or address.
“However, password pasting actually improves security because it enables the use of password managers.”
Before you start
- Your report lists the fields. Search your code for onpaste, or a paste event listener that calls preventDefault().
- If you want to catch typos in an email, show the address back for confirmation instead of blocking paste.
Fix it on your platform
Shopify
- Check whether the field belongs to your theme or an app. In your theme, remove the paste handler in Edit code; for an app's form, contact the app's developer.
WordPress
- Check form, security and login plugins for a "disable paste" or "prevent copy" option and turn it off.
Webflow
- Remove the paste-blocking script from your custom code or embed.
Wix
- Remove the paste-blocking script from your custom code (Velo or Custom Code settings), or the app that adds it.
Squarespace
- Remove the paste-blocking script from code injection or the extension that adds it.
Next.js
- Remove onPaste handlers that call preventDefault().
Any other site
- Remove onpaste attributes and paste event listeners that cancel the event.
<input type="password" onpaste="return false">Check that it's fixed
- Copy some text and paste it into each listed field.
- Re-run your StudioLNC audit: the issue should be gone.
Find every issue like this on your site
Free audit of performance, accessibility, SEO and security, with fixes for your platform.