Hi @OliverRodrigues ,
Thanks for your reply! Perhaps let me explain the nature of my question further:
If I have a web form that has 3 web form steps, let's call them step 1, 2 and 3. My understanding is that every time the user clicks the next button to move to the next step, the data is saved back to the database.
So if user A and user B on the portal access the same web form at the same time. Both users start the web form from step 1, and the following happens:
- Initially when both user A and B opens the form in step 1, we have a field with the value "10", so both users see the value "10" from their browser session
- Then, user A update the field to "100" and moves to step 2, while user B is still viewing his session in step 1. At this moment, I believe the value "100" is updated and saved to the system, but from user B's perspective he is still seeing the previous old value "10" in his browser session.
- Then, user B moves to step 2 without making any changes in step 1. At this moment, because the field was still showing "10" in step 1 from user B's perspective, when user B clicks next to move to step 2, the value "10" in step 1 would be saved to the system, and therefore overwrite the value "100" that was previously updated by user A.
Is my above understanding correct? If yes, I am looking for a way to prevent what user A has updated in step 1 from being overwritten by what user B does when user B moves from step 1 to step 2 (without making any updates to step 1 in this case).
The nature of my question is users have to step through the web form steps in sequence to get to their desired step. If there is a scenario where user A is only interested in filling the data in step 2, and another user is only interested in filling the data in step 5, it appears they have no choice but to step through from step 1, 2, 3, 4, 5,...etc, and along the way when they click the next button they will be saving the data from previous steps.
If I miss anything or if there is a better way to manage this, would appreciate your inputs.
Thanks!