Ecom:FieldDisplayGroup.Field.OptionLabel
Version: 9.7.0 stringSummary
Returns Option Name for the field.
Settings
The value is available for fields type of list only. It can be set in the field definition (Product / Product Category field) - Options - Name.
Examples
Outputting the template tag
@GetString("Ecom:FieldDisplayGroup.Field.OptionLabel")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:FieldDisplayGroup.Field.OptionLabel"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:FieldDisplayGroup.Field.OptionLabel");
}
Outputting the template tag
<!--@Ecom:FieldDisplayGroup.Field.OptionLabel-->
Check if string has a value
<!--@If Defined(@Ecom:FieldDisplayGroup.Field.OptionLabel)-->
Let's output this tag here: <strong><!--@Ecom:FieldDisplayGroup.Field.OptionLabel--></strong>
<!--@EndIf(@Ecom:FieldDisplayGroup.Field.OptionLabel)-->