Copied to clipboard

Flag this post as spam?

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


  • Peter 8 posts 88 karma points
    Sep 24, 2020 @ 10:36
    Peter
    0

    UmbracoForms.FormPicker (ContactForms) Errors in Umbraco 8.8 RC

    Hi Friends,

    I just updated to Umbraco 8.8 RC from 8.6.3 and there is the error with UmbracoForms.FormPicker in the contact form in my website. Any one can help. Thanks

    enter image description here The codes in /Views/contact.cshtml:

    <div class="row">
                    @Html.Partial("ContactForm", new Umbraco.Models.ContactFormViewModel())
    
    </div>
    

    The codes in /Views/Partials/ContactForm.cshtml:

    @inherits Umbraco.Web.Mvc.UmbracoViewPage< Umbraco.Models.ContactFormViewModel>
    
    @using (Html.BeginUmbracoForm<Umbraco.Controllers.ContactFormSurfaceController >("ContactForm"))
    {
        <div class="error-container"></div>
      <div class="row">
         <div class="col-md-6">
            <div class="form-group">
               <label>@Umbraco.GetDictionaryValue("Name")</label>
            <input class="form-control form-control-name" name="name" id="name" placeholder="" type="text" required="">
            </div>
         </div>
         <div class="col-md-6">
            <div class="form-group">
               <label>@Umbraco.GetDictionaryValue("Email")</label>
               <input class="form-control form-control-email" name="email" id="email" placeholder="" type="email" required="">
            </div>
         </div>
         <div class="col-md-6">
            <div class="form-group">
               <label>@Umbraco.GetDictionaryValue("Subject")</label>
               <input class="form-control form-control-subject" name="subject" id="subject" placeholder="">
            </div>
         </div>
          <div class="col-md-6">
            <div class="form-group">
               <label>@Umbraco.GetDictionaryValue("Phone")</label>
               <input class="form-control form-control-subject" name="phone" id="phone" placeholder="">
            </div>
         </div>
      </div>
    
      <div class="form-group">
         <label>@Umbraco.GetDictionaryValue("Body")</label>
         <textarea class="form-control form-control-message" name="message" id="message" placeholder="" rows="10" required=""></textarea>
      </div>
      <div class="text-right"><br>
         <button class="btn btn-primary solid blank" type="submit">@Umbraco.GetDictionaryValue("SendMessage")</button> 
      </div>
    
        @Html.ValidationSummary(true)
        @Html.AntiForgeryToken()
    }
    

    My Contact form in Umbraco 8.8 RC is shown the error:

    enter image description here

    My Contact forms in Umbraco 8.6.3: My Contact forms in Umbraco 8.6.3:

    Peter

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Jan 08, 2021 @ 11:14
    Alex Skrypnyk
    0

    Hi Peter

    The error message says that Umbraco namespace doesn't contain Models namespace, it does not form picker error, it's asp net error.

    Check please class names and namespaces in your view.

    Thanks, Alex

  • Peter 8 posts 88 karma points
    Jan 20, 2021 @ 03:56
    Peter
    0

    Hi Alex,

    I don't edit any code, I just Update Umbraco to latest version and got errors.

    Thanks

    Peter

Please Sign in or register to post replies

Write your reply to:

Draft