This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves the form limits and premium features in force for the site, and the number of forms it currently has.
Call Get Restrictions before creating or updating a form to check the change against the site's plan. A form that
exceeds a limit, or that uses a feature absent from restrictions.features, is rejected. Compare
totalFormCount with restrictions.formsLimit to check whether the site can add another form, and use each
limit's warnThreshold to warn a site owner who is approaching it.
The limits come from the site's premium plan and change when the plan changes. When a plan change leaves a form over a limit, the form is disabled rather than deleted: it stops accepting submissions, but it and its submissions remain readable.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.