diff --git a/ActiveIS.UmbracoForms.ConfirmInput/Views/Partials/Forms/Themes/default/Fieldtypes/FieldType.ConfirmInput.cshtml b/ActiveIS.UmbracoForms.ConfirmInput/Views/Partials/Forms/Themes/default/Fieldtypes/FieldType.ConfirmInput.cshtml index 1adb042..3abe158 100644 --- a/ActiveIS.UmbracoForms.ConfirmInput/Views/Partials/Forms/Themes/default/Fieldtypes/FieldType.ConfirmInput.cshtml +++ b/ActiveIS.UmbracoForms.ConfirmInput/Views/Partials/Forms/Themes/default/Fieldtypes/FieldType.ConfirmInput.cshtml @@ -24,7 +24,7 @@ @{if (Model.Mandatory) { <text> data-val-required="@Model.RequiredErrorMessage" </text> }} @{if (Model.Validate) { <text> data-val-regex="@Model.InvalidErrorMessage" data-regex="@Html.Raw(Model.Regex)" </text> }} /> <label>Confirm @Model.Caption</label> -<input type="text" name="@Model.Name" id="@confirmId" class="text" value="@values[1]" maxlength="500" +<input type="text" name="@Model.Name" id="@confirmId" class="text" value="@values[0]" maxlength="500" @{if (string.IsNullOrEmpty(Model.PlaceholderText) == false) { <text> placeholder="Confirm @Model.PlaceholderText" </text> }} data-val="true" data-val-validateconfirminput="@invalidMessage" diff --git a/Builds/ActiveIS.UmbracoForms.ConfirmInput_1.0.1.zip b/Builds/ActiveIS.UmbracoForms.ConfirmInput_1.0.1.zip new file mode 100644 index 0000000..519dd9d Binary files /dev/null and b/Builds/ActiveIS.UmbracoForms.ConfirmInput_1.0.1.zip differ diff --git a/Builds/NuGet/ActiveIS.UmbracoForms.ConfirmInput.nuspec b/Builds/NuGet/ActiveIS.UmbracoForms.ConfirmInput.nuspec index 9f37977..c9fcd7c 100644 --- a/Builds/NuGet/ActiveIS.UmbracoForms.ConfirmInput.nuspec +++ b/Builds/NuGet/ActiveIS.UmbracoForms.ConfirmInput.nuspec @@ -2,7 +2,7 @@ <package > <metadata> <id>ActiveIS.UmbracoForms.ConfirmInput</id> - <version>1.0.0</version> + <version>1.0.1</version> <title>ActiveIS.UmbracoForms.ConfirmInput</title> <authors>ActiveIS</authors> <owners>ActiveIS</owners> diff --git a/TestSite/App_Data/packages/createdPackages.config b/TestSite/App_Data/packages/createdPackages.config index 83eb2b7..f0bf2fb 100644 --- a/TestSite/App_Data/packages/createdPackages.config +++ b/TestSite/App_Data/packages/createdPackages.config @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <packages> - <package id="1" version="1.0.0" url="https://github.com/ActiveIS/ActiveIS.UmbracoForms.ConfirmInput" name="ActiveIS.UmbracoForms.ConfirmInput" packagePath="~/media/created-packages/ActiveIS.UmbracoForms.ConfirmInput_1.0.0.zip" iconUrl="" umbVersion="8.6.3" packageGuid="ea724e58-fc64-401b-b669-a27e0091d2b5" view=""> + <package id="1" version="1.0.1" url="https://github.com/ActiveIS/ActiveIS.UmbracoForms.ConfirmInput" name="ActiveIS.UmbracoForms.ConfirmInput" packagePath="~/media/created-packages/ActiveIS.UmbracoForms.ConfirmInput_1.0.1.zip" iconUrl="" umbVersion="8.6.3" packageGuid="ea724e58-fc64-401b-b669-a27e0091d2b5" view=""> <license url="http://opensource.org/licenses/MIT"><![CDATA[MIT License]]></license> <author url="https://activeis.net"><![CDATA[ActiveIS]]></author> <contributors> diff --git a/TestSite/Views/Partials/Forms/Themes/default/Fieldtypes/FieldType.ConfirmInput.cshtml b/TestSite/Views/Partials/Forms/Themes/default/Fieldtypes/FieldType.ConfirmInput.cshtml index 1adb042..3abe158 100644 --- a/TestSite/Views/Partials/Forms/Themes/default/Fieldtypes/FieldType.ConfirmInput.cshtml +++ b/TestSite/Views/Partials/Forms/Themes/default/Fieldtypes/FieldType.ConfirmInput.cshtml @@ -24,7 +24,7 @@ @{if (Model.Mandatory) { <text> data-val-required="@Model.RequiredErrorMessage" </text> }} @{if (Model.Validate) { <text> data-val-regex="@Model.InvalidErrorMessage" data-regex="@Html.Raw(Model.Regex)" </text> }} /> <label>Confirm @Model.Caption</label> -<input type="text" name="@Model.Name" id="@confirmId" class="text" value="@values[1]" maxlength="500" +<input type="text" name="@Model.Name" id="@confirmId" class="text" value="@values[0]" maxlength="500" @{if (string.IsNullOrEmpty(Model.PlaceholderText) == false) { <text> placeholder="Confirm @Model.PlaceholderText" </text> }} data-val="true" data-val-validateconfirminput="@invalidMessage"