Field.Option.Text

Version: - string  

Summary

Returns the labl of the field option.

Settings

The value is based on the Label input field for the field option.

(Data Lists > Forms > Form > >Field > Options tab > label)

Examples

Outputting the template tag

@GetString("Field.Option.Text")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Field.Option.Text"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Field.Option.Text"); }

Outputting the template tag

<!--@Field.Option.Text-->

Check if string has a value

<!--@If Defined(@Field.Option.Text)--> Let's output this tag here: <strong><!--@Field.Option.Text--></strong> <!--@EndIf(@Field.Option.Text)-->