Form.Fields.[FieldSystemName].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("Form.Fields.[FieldSystemName].Active")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Form.Fields.[FieldSystemName].Active"); }

Outputting the template tag

<!--@Form.Fields.[FieldSystemName].Active-->

Check if string has a value

<!--@If Defined(@Form.Fields.[FieldSystemName].Active)--> Let's output this tag here: <strong><!--@Form.Fields.[FieldSystemName].Active--></strong> <!--@EndIf(@Form.Fields.[FieldSystemName].Active)-->