Skip to content

Loqate address verification plugin for Umbraco Forms

License

Notifications You must be signed in to change notification settings

ActiveIS/ActiveIS.UmbracoForms.Loqate

Repository files navigation

ActiveIS.UmbracoForms.Loqate

Loqate address verification plugin for Umbraco Forms

Getting started

This package is supported on Umbraco 8.6+ and Umbraco Forms 8.4.1+.

Installation

ActiveIS.UmbracoForms.Loqate is available from Our Umbraco, NuGet or as a manual download directly from GitHub.

Our Umbraco repository

You can find a downloadable package on the Our Umbraco site.

Usage

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)
}

Contribution guidelines

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.

License

Copyright © 2020 ActiveIS & Aaron Sadler.

Licensed under the MIT License.