close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

multiple submition

Thread began 1/15/2020 12:34 pm by Gizza372666 | Last modified 1/20/2020 1:09 pm by Ray Borduin | 104 views | 9 replies |

Gizza372666

multiple submition

Hi,
I have an insert record and send email form which is submitting the values onto the db multiple times.
how do I stop this?

Sign in to reply to this post

Ray BorduinWebAssist

I can't spot the problem. Are both inserts the same values? Do two emails get sent?

Sign in to reply to this post
Did this help? Tips are appreciated...

Gizza372666

Yes the emails and the data is stored onto the db.
My customer is completing the form by using his mobile phone.
He is keep pressing the submit button to test the form and about 4 to 5 same records are added onto the db table.
is there a way to add submit once?
I tried to submit once and disabled the button however isn't a good idea as if the user has not completed the required fields, and submit the button, they will be unable to press the button again once the required fields have been successfully completed.
Any idea how to bypass this issue?
Looking forwared to your reply.
Thanks

Sign in to reply to this post

Ray BorduinWebAssist

You could probably check to make sure all of the fields are valid before disabling the button.

Are you using the webassist jquery form validation? If so, then it would be something like:

onclick="if ($('#form1').h5Validate('allValid')) document.getElementById('submit').setAttribute('disabled','true');'

You would have to give your <form> tag an id="form1" attribute and add the onclick event to the submit button.

Sign in to reply to this post
Did this help? Tips are appreciated...

Gizza372666

Hi Ray,
I added the jq validation but still the same issue.
The issue only happens with google chrome.
Can you please have a look the file for me and let me know why the button isn't disabled after the first submission?
Looking forward to the solution.
Thanks

Sign in to reply to this post

Ray BorduinWebAssist

It looks like this file was not uploaded:
/webassist/jq_validation/jquery.h5validate.js

it needs to be on the server for the jquery validation to work.

Sign in to reply to this post
Did this help? Tips are appreciated...

Gizza372666

hi,
I have now uploaded this file and still the same issue with google chrome.
it submits multiple times when I keep clicking the submit button once all the fields are complete.
any other ideas on how this issue can be fixed?

Sign in to reply to this post

Ray BorduinWebAssist

The path now seems wrong on the page.

You have:
<script src="/home/businessmobile/www/www/webassist/jq_validation/jquery.h5validate.js"></script>
and
<link rel="stylesheet" href="webassist/jq_validation/Midnight.css" />

it should be:
<script src="/webassist/jq_validation/jquery.h5validate.js"></script>
and
<link rel="stylesheet" href="/webassist/jq_validation/Midnight.css" />

Sign in to reply to this post
Did this help? Tips are appreciated...

Gizza372666

the problem is still there.
I've added a dreamweaver behavior (show/hide).
the button is hidden on submit which will not allow people to resubmit the form.
This is the workaround fix I managed to apply.
can you please let me know if within yoru ext there is an option which I can quickly apply to show a loader while the form is submiting the vals into to the db?

Sign in to reply to this post

Ray BorduinWebAssist

You should be able to use: WebAssist->Forms->Progress Bar to show a loader and stop multiple submissions that way.

Sign in to reply to this post
Did this help? Tips are appreciated...
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...