I'm using a Netweb Form to gather input from a user. Once I've completed my own validation (checked fields have been populated etc.) I need to post the results to an external 3rd Party Webservice, which will further validate the data returning a success for fail.
I've been using the "ValidateAll" embed to add my call the the extra web service because I don't want the contents of my form being saved unless I pass the 3rd party validation.
On the face of it everything works fine, and has been in production for some time, BUT we get occasional queries about duplicates being posting to the 3rd Party Webservice. We've never been able to reproduce this, and it seems very random.
By chance yesterday we stumbled upon the issue. Our Netweb form remains visible whilst the call to the 3rd Party web service is completed. If this call is slow (maybe a second or 2 to complete) it is possible that a user can press the save button on our form multiple times believing that the page has hung, causing multiple duplicate posts to the 3rd party.
Can anyone suggest a better way of achieving what I want, or an alternative embed, or even a way of stopping the user pressing the save button on the form multiple times?
Regards,
Neil Porter