Re-appearing button

I have a form up on the app. I want my users to no keep submitting it again and again. Hence, I am thinking of making the form button disappear for 24 hours after a user fill it once. Then, after 24 hours, it will appear again. Can somebody help me with this?

I tried this solution, but it is not working. May be I am understanding it wrong.

  • Create a relation from the users table to the submsissions table, possibly using the user’s rowID/email.

  • Create a rollup column, getting the latest submission timestamp from the relation above.

  • Use a math column to add 1 day to that rollup value. Let’s call that “Unlock time”.

  • Don’t show the button when “Unlock time” is after now.