question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unlimited forms created by spamming add items button in user setting

See original GitHub issue

Is 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 thumb-Clipboard - June 14, 2022 8_34 PM

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:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
moT01commented, Jun 16, 2022

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…

Screen Shot 2022-06-16 at 8 32 11 AM

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: Screen Shot 2022-06-16 at 8 47 53 AM It may need a little fine tuning.

1reaction
KravMaguycommented, Sep 17, 2022

The only thing I might change here is to disable Add a new portfolio item until a changed item is saved.

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found