Umbraco Forms: How to get the name of a form

Note: This post is over 3 months old and may be outdated or superseded by additional information.

The name of the form isn’t available by default, so you need to use FormStorage() to access it:

FormStorage formStorage = new FormStorage();
Form        form        = formStorage.GetForm(Model.FormId);
string      formName    = form.Name;