Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Preventing Duplicates With Online Forms
Hello Everyone,
We have custom HTML online forms that we use for cases and custom records. We have noticed however that people like to hit the Submit button multiple times, and even though they see the warning about the form already being submitted, they will re-submit anyway. This process occurs so fast that we are unable to prevent a duplicate record from being created.
One of the ideas we had was to disable the Submit button when the form is being submitted so someone is unable to submit the form multiple times. However, we get stuck if an error is thrown by NetSuite. For example, if the person needs to fill in a mandatory field, NetSuite will throw a message to the user, but the field is still disabled. In this case, we would need to find a way to determine that NetSuite threw an error, and that the button needs to become enabled again.