-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
I have a problem with input id duplicates.
In my case, I need two partial views containing a form each. These partials are then inserted inside another view.
<div class="col-lg-9 pt-4 pb-2 pb-sm-4">
<h1 class="h2 mb-4">@HtmlLocalizer["Settings"]</h1>
<partial name="_ProfileForm" model="@Model.Profile" />
<partial name="../Password/_UpdatePasswordForm" model="@Model.UpdatePassword" />
</div>
I use the ReCaptcha tag helper in both forms.
However, if I go to inspect the source code from the browser, two hidden inputs are generated with the same id (g-recaptcha-response-1)
Of these two, only the first field is assigned the token.
Is it possible to fix this issue? Or maybe is it possible to pass a custom id to recaptcha tag?
I'm using AspNetCore.ReCaptcha V1.8.2 with .net 8
Thanks a lot
Metadata
Metadata
Assignees
Labels
No labels