Unlimited forms created by spamming add items button in user setting
See original GitHub issueIs your feature request related to a problem? Please describe.
When you navigate to /settings scroll to portfolio setting and press Add a new portfolio Item
If you keep pressing them a number of times, you will create the same number of forms.
Describe the solution you’d like
Adding active
class that stops creating new ones or indicate the button is pressed, so people don’t keep spamming it.
Describe alternatives you’ve considered
In issue #44668 we are planning to create toggle button, I can try to create it following the guide then swapping it later with the current components
Additional context
This isn’t a true issue, but a quality of life request
Issue Analytics
- State:
- Created a year ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
How to prevent bots from spamming your sign up forms
Protect your forms and keep your contact lists. Here are some ways you can prevent bots from spamming your forms or fake emails....
Read more >How to Save Your WordPress Forms from Spam
Firstly, go to Google reCAPTCHA website, sign in with your Google account. Now click on the admin console button on the top right...
Read more >How to Stop Contact Form Spam in WordPress [9 Ways]
WordPress contact form spam is a fixable issue. In this guide, we explain 9 ... Click on the Save Settings button to store...
Read more >How to Add a WordPress Contact Form in a Simple Way
From the contact form builder, navigate to Settings → Notifications. It'll display all options to customize the contact form notifications.
Read more >Drag & Drop Builder, Human Face Detector, Pre-built ...
Unlimited forms - No restrictions; Drag and Drop Form Builder; 100% responsive and beginner-friendly ; Advanced Fields; Block Users; Limit Form Entries by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To clarify a little, each time you click that “Add a new portfolio Item” button, a new form shows up to add an item. You can spam it and have a bunch of forms show up…
The bigger issue I see is that each time you click a save or remove button, it makes a request to the api and saves to the database. I don’t think this is overloading our server or database, it’s probably minimal - but I think we should find a way to batch update these, similar to what we did with the privacy settings. So, maybe there’s one save button at the bottom.
We could also maybe set a maximum number of items? Maybe 10.
Edit: I made a quick mock: It may need a little fine tuning.
If he adds an item and doesnt save it then goes to edit another item and saves it, you will still want the add button to be disabled, else you would be allowing him to create two blank forms