Forms - force submit after a deadline

Hi. I’m currently working on a web-exam project using streamlit. I wonder if there is any way to force submit streamlit forms after the deadline of the exam is reached?

I’ve tried using session state on the form_submit_button but it doesn’t work as well.

Hi @junchao1507, welcome to the Streamlit community!

I don’t know the answer off-hand, but you could do the opposite, meaning refusing to take answers by checking the current time. This puts the timing on the user to make sure they submit by the proper time.

Best,
Randy

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.