Hi all,
I have a somewhat simple registration app. Users can scroll through a gallery of courses and register to attend.
On the DisplayMode property I have a formula (see below) that counts the course "Capacity" column (in SharePoint) and then determines if there are spaces left, the button remains in edit mode, but if the course is full, it disables.
This works well 98% of the time. But twice now, when we have added new courses, there is an influx of user registration, and the formula is failing, allowing for people to continue to register, even though the course is full.
I have noticed, once the count goes into -minus, the formula fails, and thinks the capacity is still okay to register.
I have used two formula's both work, but have they same glitch if the registrations go into minus.
DisplayMode property of the button:
Option 1:
If(
ThisItem.'Total capacity' = Sum(
ForAll(
Filter(
SP List,
'Walk ID' = ThisItem.ID
),
1
),
Value
),
DisplayMode.Disabled,
DisplayMode.Edit
)
Option 2:
With(
{
_Walk: Filter(
SP List,
'Walk ID' = ThisItem.ID
)
},
If(
ThisItem.'Total capacity' = CountRows(_Walk),
DisplayMode.Disabled,
DisplayMode.Edit
)
)
Is there a way to update either formula to failsafe against the count going into minus? I believe that should fix this glitch?
Thanks,
DW