Copied to clipboard

Flag this post as spam?

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


  • Nabin Prajapati 2 posts 72 karma points
    Dec 31, 2018 @ 05:25
    Nabin Prajapati
    0

    custom checkbox list not being saved on umbraco member backoffice

    i have a list of checkbox with parent child dependency , while saving the checked checkbox , it doesn't show any error message nor it get saved. The piece of code for save event is below :

    $scope.$on("formSubmitting", function (ev, args) {

        $scope.model.value = [];
        var selectedExamples = "";
        angular.forEach($scope.examplesSubSectorDropdown, function (value, key) {
    
            if (value.Selected) {
                if (selectedExamples != "") {
                    selectedExamples = selectedExamples + "," + value.Id;
                    selectedExamples = selectedExamples + "," + value.Collectief.CollectiefId;
                }
                else {
                    selectedExamples = value.Id;
                     selectedExamples = selectedExamples + "," +value.Collectief.CollectiefId;
                }
    
            }
        });
    
        $scope.model.value = selectedExamples;
    });
    

    The $scope.model.value returns set of Id of checkbox while debugging. I would feel grateful if anybody suggest me some solution

Please Sign in or register to post replies

Write your reply to:

Draft