Copied to clipboard

Flag this post as spam?

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


  • Dan Evans 631 posts 1018 karma points
    Sep 06, 2014 @ 13:11
    Dan Evans
    1

    Reset form picker so no form is selected

    If the form picker data type is selected is it possible to reset it so NO form is chosen if a user has previously selected a form? i.e. the user chooses form X to show on the page but subsequently decides not to show any form. At the moment there is no way to remove the choice.

    Thanks

  • Claushingebjerg 939 posts 2574 karma points
    Oct 22, 2014 @ 14:06
    Claushingebjerg
    0

    +1 on this!

    How do we deselect the form?

  • Claushingebjerg 939 posts 2574 karma points
    Oct 23, 2014 @ 16:00
    Claushingebjerg
    0

    Ok, so i did i dirty hack, since it doesnt seem to be a matter of big importance to others.

    in the /App_plugins/Contour/formpicker.html i changed it like this

     <div ng-controller="Contour.FormPickerController">
    
         <label style="margin-bottom:10px;">
                 <input ng-model="model.value" value="" type="radio" name="form">
                 No form
                 <small>select if you dont want to show a form</small>
             </label>
    
    
         <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>

    and then in my view i do a check if the form property IsNullOrEmpty 

    Pretty sure it could be done a lot more elegant, but im not a coder...

  • Dan Evans 631 posts 1018 karma points
    Oct 23, 2014 @ 16:40
    Dan Evans
    0

    I've done it with a checkbox property on the doc type "no form" which I then check in the code. 

    Oddly this problem only happens in recent versions of Contour. In an older version I have there is a "delete" option.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Nov 07, 2014 @ 16:08
    Dennis Aaen
    1

    Hi Dan and Claus,

    I have made a issue on the issue tracker on this, that it´s not possible to unselect a form, it you have selected on using the form picker on a document type. You can vote for the issue here: http://issues.umbraco.org/issue/CON-616

    /Dennis

  • Comment author was deleted

    Nov 10, 2014 @ 13:29

    thanks for reporting, fixed and coming in v3.0.24 and v4

Please Sign in or register to post replies

Write your reply to:

Draft