Dictionary item does not work in FieldType.DropDownList.cshtml
Hi there am trying to use the dictionary item as default value in first option value in FieldType.DropDownList.cshtml
<select id="@Model.Id" ng-options="item.name for item in Lists track by item.id" class="@ViewData[" Alias"].ToString()" ng-model="List">
<option value="">@Html.GetDictionaryItem("test")<option>
</select>
It throw the following exception
HttpCompileException: Views\Partials\Forms\dae343e5-c611-4411-b941-22d883fe76ac\FieldType.DropDownList.cshtml(6): error CS1928: 'System.Web.Mvc.HtmlHelper<Umbraco.Forms.Mvc.Models.FieldViewModel>' does not contain a definition for 'GetDictionaryItem' and the best extension method overload
i have the following namespace
@model Umbraco.Forms.Mvc.Models.FieldViewModel
Dictionary item does not work in FieldType.DropDownList.cshtml
Hi there am trying to use the dictionary item as default value in first option value in FieldType.DropDownList.cshtml
It throw the following exception
i have the following namespace @model Umbraco.Forms.Mvc.Models.FieldViewModel
Thank you for help
Hi i have managed to sorted to it out , may be this might someone else if ever they come across same issue
In my form.cshtml
In my FieldType.DropDownList.cshtml
is working on a reply...