Vulnerability in EPiServer.Forms
Is there any way to set a maximum amount of submissions to a FormContainerBlock?
If there is no out of the box or best practice way of doing it I think I will go with either a validator that counts submissions on rendering or on submit (if the max amount is reached unpublish the formblock or something like that).
Any help would be appreciated!
You can create a Criteria which use Forms APIs to get submissions count. Then use it in a VisitorGroup, when the count is exceeded it will hide the form to prevent use continue submitting.
I see. I will use the API to count the submissions and hide the form if my limit is reached.
This would be useful as a built-in global setting for the form, instead of having to combine criteria+visitorgroup. Something to consider for the Forms backlog, @Dac Thach Ngyuen?