Submit Button only once

I have a user input button that feeds into a database. I want to ensure that my site visitors can use/click the submit button, but only once. Is there a way to do that?

Hey,

Using code, after the first submit you can disable the button to prevent users from clicking it again, using the disable function: https://www.wix.com/code/reference/$w.Button.html#disable

Good Luck,
Itai

Hello Itai Pelles . We do not have program skills to make one field " submit only once " . Any email address where we can email an example of what we are looking for ? thanks

When SUB;IT-button clicked start a function which would take the ID of current-logged-in-user and compare it with all values which are stored in a separate DB called —> “AlreadyClickedUsers”. In this DB you will store/save all users and its IDs which already have clicked the SUBMIT-button.

If the current User-ID who has clicked onto the button is still not in DB, then you save the new ID-value into your DB and DISABLE your SUBMIT-button.

On page-loading, you immediately start an automatic function which will compare all values in your DB with the ID of the current logged-in-user and which will decide if disable or enable your SUBMIT-Button for the current user.