Preventing Race Conditions in SmartForms with LISE
Posted: Fri Sep 19, 2025 4:02 pm
Hello,
I have a booking form (using SmartForms) that, on submission, checks if an event (LISE item) has any spaces available. It does this by reading the value of the "spaces" field (UDT).
If spaces are available, the form updates the event's spaces, saves the booking (in another LISE instance), and completes the rest of the dispositions.
The issue I'm running into is race conditions - multiple submissions can overlap and allow overbooking.
Is there a way in my UDT to access a LISE item's "spaces" field and lock it while performing the check?
Thanks
James
I have a booking form (using SmartForms) that, on submission, checks if an event (LISE item) has any spaces available. It does this by reading the value of the "spaces" field (UDT).
If spaces are available, the form updates the event's spaces, saves the booking (in another LISE instance), and completes the rest of the dispositions.
The issue I'm running into is race conditions - multiple submissions can overlap and allow overbooking.
Is there a way in my UDT to access a LISE item's "spaces" field and lock it while performing the check?
Thanks
James