Field.Active

Version: - string  

Summary

Returns the value "True" if the field is active.

Settings

The value is based on the Active check box for a field.

(Data Lists > Forms > Form > Field > General tab > Active)

Examples

Outputting the template tag

@GetString("Field.Active")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Field.Active-->

Check if string has a value

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