I am trying to calculate a field 'remaining seats' which is set by having the amount of records in the database from those who signed up using the form subtracted from the max capacity. I currently am using a ConfiForms Rules for Field Definition to edit a read-only field reamingSeats
Action to execute
set expression
Values to set
RemainingSeats=(50 - [entry._total] )
if there are 50 records currently in the dataset it should should 0 but it is only showing 49. How to access total record count and also max capacity that's set in ConfiForms Form Definition (so I wont have to hardcode 50 in the expression)