This package adds Loqate address verification to Umbraco Forms.
This is tested with Umbraco V8.6.1 and Umbraco Forms 8.4.1
You will need to add the following key to your Web.Config:
<add key="LoqateKey" value="YOUR SECRET KEY" />
The plugin includes a replacement for Form.cshtml
, do not overwrite your copy if you have made modifications, instead change as below:
Change this line:
@Html.Partial(FormThemeResolver.GetFieldView(Model, f), f)
To this:
@if (f.FieldTypeName == "Loqate")
{
@Html.Partial(FormThemeResolver.GetFieldView(Model, f), f, new ViewDataDictionary{ { "FormId", Model.FormId }})
}
else
{
@Html.Partial(FormThemeResolver.GetFieldView(Model, f), f)
}