Form.MaxSubmits
Version: - integerSummary
Returns the maximum number of allowed submits of the form.
Settings
The value is based on the Max submits field in the form settings.
(Modules > Forms for editors > Form > Settings > Max submits)
Remarks
This count is overruled by the Max submits on this page setting in the paragraph module settings.
Examples
Outputting the template tag
@GetInteger("Form.MaxSubmits")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("Form.MaxSubmits"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("Form.MaxSubmits");
}
Outputting the template tag
<!--@Form.MaxSubmits-->
Check if integer has a value
<!--@If Defined(@Form.MaxSubmits)-->
Let's output this tag here: <strong><!--@Form.MaxSubmits--></strong>
<!--@EndIf(@Form.MaxSubmits)-->