Form.Submits
Summary
The Form.Submits
loop lets you display available data of the form submits.
Examples
Basic usage
Notice the use of @item.GetValue to get data from the loop variable.
If you just write @GetValue, the data will be taken from outside the loop.
Similarly, you have to use @item.GetLoop to use loops inside a loop.
Check if the loop exists
Example of usage
The following general example illustrates how to use a loop construct.
Check if the loop exists
Available tags
Field.[FieldSystemName].Name
Returns the name of the submitted field.
@GetString("Field.[FieldSystemName].Name")
Field.[FieldSystemName].OptionText
Returns the label/text of the option that is submitted by the user.
@GetString("Field.[FieldSystemName].OptionText")
Field.[FieldSystemName].SystemName
Returns the system name of the submitted field.
@GetString("Field.[FieldSystemName].SystemName")
Field.[FieldSystemName].Value
Returns the value that is submitted by the user.
@GetString("Field.[FieldSystemName].Value")
Available loops
FieldValues
The FieldValues loop lets you display information about the submitted form fields.
@foreach (LoopItem item in GetLoop("FieldValues")){ <p>@item.GetValue("TagName")</p> }