Forum Academy Marketplace Showcase Pricing Features

Disable copy/paste on an input field

I have an input form, and I’d like to force the user to type text in one field rather than pasting text in it. I did some Googling but didn’t find a solution. To be more precise, it’s a search box field.

Thanks!

Hey Ayjey, by most it is considered bad UX to disable this functionality (or to alter default behaviour like this). If users copy paste and make a mistake, they should “suffer” the consequenses :grinning:. That being said, searching the forum does not come up with any results but Googling does, search for “javascript disable paste” and you’ll see a plethora of results.

1 Like