Field.Checked

Version: - string  

Summary

Returns the value "Checked" if a check box by default is checked in the form.

Settings

The value is based on the Default selection dropdown (selected) for a field.

(Data Lists > Forms > Form > Field > General tab > Default selection)

Examples

Outputting the template tag

@GetString("Field.Checked")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Field.Checked-->

Check if string has a value

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