Copied to clipboard

Flag this post as spam?

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


  • Jonathan 19 posts 101 karma points
    Oct 31, 2014 @ 09:51
    Jonathan
    0

    Form Picker property - Empty labels & value in CMS after update

    Hi,

    We've just updated a site we're working on from Umbraco 7.1.5 to 7.1.8 and upgraded to the Contour 3.0.22 package.

    When we edit content pages in the CMS which have a Form Picker property the Form picker renders the correct ammount of radio buttons. However their labels and values are empty. After saving the page this results in a "Please provide a valid form Id" in the site. There are no javascript errors or any other errors in the CMS regarding this.

    Hereunder the rendered HTML of the Form Picker and a screenshot. Could this have anything todo with the latest updates?

    Thanks in advance for your time.

    <div ng-controller="Contour.FormPickerController" class="ng-scope">
    
     <!-- ngRepeat: form in forms --><div class="radio ng-scope" ng-repeat="form in forms">
         <label class="ng-binding">
             <input ng-model="model.value" value="" type="radio" name="form" class="ng-pristine ng-valid">
    
             <small class="ng-binding"></small>
         </label>
     </div><div class="radio ng-scope" ng-repeat="form in forms">
         <label class="ng-binding">
             <input ng-model="model.value" value="" type="radio" name="form" class="ng-pristine ng-valid">
    
             <small class="ng-binding"></small>
         </label>
     </div>
    

    screenshot

  • Comment author was deleted

    Nov 03, 2014 @ 09:14

    Hey,

    We are unable to reproduce the issue, would it be possible to send a backup of the site to tg at umbraco dot com? Then we can use it to debug and fix the issue.

    Thanks,
    Tim 

  • Jonathan 19 posts 101 karma points
    Nov 03, 2014 @ 09:44
    Jonathan
    0

    Hey Tim,

    Thanks for your reply, you'll receive a Wetransfer link within the hour. Thanks in advance!

    Jonathan

  • Comment author was deleted

    Nov 03, 2014 @ 09:45

    Perfect then we can hopefully have this resolved today :)

  • Comment author was deleted

    Nov 03, 2014 @ 11:09

    Ok new build will be out today but to fix immediately you can simply update the \App_Plugins\Contour\formpicker.html file

    to 

     <div ng-controller="Contour.FormPickerController">
    <div class="radio" ng-repeat="form in forms">
             <label>
                 <input ng-model="model.value" value="{{form.id}}" type="radio" name="form">
                 {{form.name}}
                 <small>{{form.fields}}</small>
             </label>
         </div>
     </div>
  • Jonathan 19 posts 101 karma points
    Nov 03, 2014 @ 12:23
    Jonathan
    0

    Thank you so much for the quick response! This fixes it. If only everything in coding was as simple as casing errors ;-)

  • Comment author was deleted

    Nov 03, 2014 @ 12:24

    Indeed, thanks for confirming :)

  • Edwin van Koppen 156 posts 270 karma points
    May 22, 2015 @ 11:54
    Edwin van Koppen
    0

    Got the same problem only my formpicker is exactly the same as yours. I've updated to the latest version 3.0.27 and umbraco 7.2.5. In firebug networking i see the html being loaded:

     <div ng-controller="Contour.FormPickerController">
    
     <div class="radio" ng-repeat="form in forms">
         <label>
             <input ng-model="model.value" value="{{form.id}}" type="radio" name="form">
             {{form.name}}
             <small>{{form.fields}}</small>
         </label>
     </div>
    
     <a ng-click="clear()" ng-show="model.value">Clear</a>
    

    and the json array returned:

    [0] Id: "0d133734-7ab5-41c2-ba52-cb408c63a883" Name: "Jobs default" Fields: "Surname ,First name ,Street ,Postal code and seven additional fields"

    Any idea?

  • Edwin van Koppen 156 posts 270 karma points
    May 22, 2015 @ 12:35
    Edwin van Koppen
    0

    Got it! the query return Name not name..

Please Sign in or register to post replies

Write your reply to:

Draft