Loqate address verification plugin for Umbraco Forms
This package is supported on Umbraco 8.6+ and Umbraco Forms 8.4.1+.
ActiveIS.UmbracoForms.Loqate is available from Our Umbraco, NuGet or as a manual download directly from GitHub.
You can find a downloadable package on the Our Umbraco site.
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)
}
To raise a new bug, create an issue on the GitHub repository. To fix a bug or add new features, fork the repository and send a pull request with your changes. Feel free to add ideas to the repository's issues list if you would to discuss anything related to the package.
Copyright © 2020 ActiveIS & Aaron Sadler.
Licensed under the MIT License.