You are viewing limited content. For full access, please sign in.

Question

Question

Lock a user task form with java code

asked on December 7, 2023

I have a test that was created that i would like to add a timer to the test. In another post , I asked could it be interrupted and I got some feedback. I was also suggested by someone to potentially look for some java code that i could put in css that would lock the form that the user is completing after a duration of time. 

 

Does anyone have a piece of code that I can place in css that would pop a message on the screen and state " Time has expired, Please submit you test". I would also like for the form to be locked/read-only when this message initiate.

 

0 0

Replies

replied on December 7, 2023

Client side code will be spoofable by any knowledgeable user. Your best option would be to auto-submit the form and use the thank you page or assign a subsequent task to let the user know that the timer has expired.

Timers in the forms process diagram would be useful, but they aren't dynamic from time of opening the form. They would be statically determined when the form is assigned, not when the form is open.

To start a timer when the form is opened, you could use custom JavaScript. You could also lock the form after the timer expires. In the new form designer, you cannot auto-submit the form. You will need to use the classic designer if this is intended behavior. 

 

Again, locking the form client side can be spoofed by a knowledgeable user. Auto-submitting the form is the only way to truly "lock" the form.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.