Hi all,
I have a form in which there is Laserfiche table that allows maximum of 10 rows. I have a span tag that says "Seats Left: 10". The number 10 is being pulled from the database so when users submit a form, the number of rows submitted is added to a database. Then when the form is refreshed the "Seats Left: 10" changes to number of rows submitted minus 10.
Also, as you click to add rows, the number of seats decreases and as you remove rows the number of seats increases.
Let's say that the form is new so there are 10 seats. I go into the form and add 2 rows. The number of seats decreases to 8 for the viewer. I submit the form and when I come back the form says that there are 8 seats left. So far so good, but the issue is that I can still add 10 rows dynamically. Even if the seats left is just 8.
Do you know of a way to update dynamically the number of rows allowed in a table?