Disable button once pressed even if page is refreshed

Need to disable a button for a period of time even when the page is refreshed so when the next audience member comes they won’t select that button?

Hi paul.
What you should do is add a collection.
Add yhe button name to it and maybe amount clicked.
When the page with the button loads, go check the last time the button has been updated.
When the time different is big enough → enable it else disable it.
And when clicked, update the clicked amount so the updated date os edited. And you know how many times it has been pressed.

@volkaertskristof can you please send me the steps to make this happen

Kristof’s solution will work if the next site visitor loads the page after the first visitor clicked the button.
But if the 2nd visitor loaded the page before the 1st visitor clicked it, it’ll still be clickable even after the 1st visitor clicked it. If you want to cover this scenario as well, you’ll have to use wix-realtime (in addition to Kristof’s solution).

Hi J. D.,
Yea indeed didn’t think about that :).
A wix-realtime will indeed do the Job.

@mclennan-paul
Check the following documentation:
wixData
wix - Realtime

Try somethings,if its not working you can always come here to let us check the code.

You can also always hire a expert to do the job.
marketplace

Kind regards,
Kristof