Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Naveed Ali 161 posts 426 karma points
    Jun 10, 2016 @ 11:37
    Naveed Ali
    0

    Recaptcha umbraco form

    Hi,

    I am using a hard coded form. Is there a way I can implement recpatcha onto this form by somehow hacking into or using the recpatcha fieldtype which is for umbraco countour??

    The only other option I can see is google recpatcha. Is there any other plugin I can use apart from this.

    Here is my form:

       <form>
                                    <div class="form-section" ng-controller="registrationController">
                                        @using (Html.BeginUmbracoForm<Bit10.Legrand.Controllers.Surface.LoginPageController>("HandleRegistration", FormMethod.Post, new { name = "registrationForm", novalidate = "" }))
                                        {
                                            @Html.AntiForgeryToken()
    
                                                <div class="form-group">
                                                    <label for="firstName">First name *</label>
                                                    <input type="text" class="form-control" id="firstName" name="FirstName" value="@currentModel.FirstName" required ng-model="firstName"
                                                           ng-class="{'ng-invalid-formcontrol' : validation && registrationForm.FirstName.$error.required}">
                                                </div>
    
                                                <div class="form-group">
                                                    <label for="lastName">Last name *</label>
                                                    <input type="text" class="form-control" id="lastName" name="LastName" value="@currentModel.LastName" required ng-model="lastName"
                                                           ng-class="{'ng-invalid-formcontrol' : validation && registrationForm.LastName.$error.required}">
                                                </div>
    
                                                <div class="form-group">
                                                    <label for="company">Company *</label>
                                                    <input type="text" class="form-control" id="company" name="Company" value="@currentModel.Company" required ng-model="company"
                                                           ng-class="{'ng-invalid-formcontrol' : validation && registrationForm.Company.$error.required}">
                                                </div>
    
                                                <div class="form-group">
                                                    <label for="email">Email *</label>
                                                    <input type="email" class="form-control" id="email" name="Email" value="@currentModel.Email" required ng-model="email"
                                                           ng-class="{'ng-invalid-formcontrol' : validation && (registrationForm.Email.$error.required || registrationForm.Email.$error.email)}">
                                                </div>
    
    @*  <div class="captcha-box"><p>Space for a captcha</p></div>
    
        <button type="button" class="btn btn-default" data-toggle="modal" data-target=".bs-example-modal-sm" ng-click="submitRegistrationForm($event)">Register</button>*@
                                        <button class="btn btn-default" ng-click="submitRegistrationForm()" data-toggle="modal" data-target=".bs-example-modal-sm">Register</button>
                                        }
                                    </div>
                                </form>
    

    Thanks

    Nav

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies