Form.EmailFieldID

Version: - integer  

Summary

Returns the ID of the field that is selected to be used as e-mail field.

Settings

The value is generated automatically but is based on the E-mail field  field in the form settings.

(Modules > Forms for editors > Form > Settings > E-mail field)

Examples

Outputting the template tag

@GetInteger("Form.EmailFieldID")

Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("Form.EmailFieldID"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("Form.EmailFieldID"); }

Outputting the template tag

<!--@Form.EmailFieldID-->

Check if integer has a value

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