Reputation: 35
I have a standard newsletter form from the shopware6 CMS.
Now people can register and get a success message but is there also an easy way to clear the input fields after the submit? Can I just give the form an ID and reset the form or is this not recommended? Anyone has an idea how to achieve this or is this just a bad idea at all?
Upvotes: 0
Views: 192
Reputation: 35008
The Shopware standard behavior is indeed a bit confusing here. Especially due to the success message being shown below the form, it might get unnoticed.
But instead of clearing the form, I would suggest to hide the form and just show the success message in it's place.
This might be also a good take for an improvement as a pull request to the Shopware platform / core.
Upvotes: 1